-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (85 loc) · 2.46 KB
/
docker-compose.yml
File metadata and controls
91 lines (85 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'
services:
structure-masst-streamlit:
build:
context: .
dockerfile: Dockerfile
container_name: structure-masst-streamlit
volumes:
- ./logs:/app/logs:rw
- ./database/:/app/database:ro
- ./sessionoutput:/app/sessionoutput:rw
- ./work:/app/work:rw
- ./external:/app/external:rw
networks:
- default
- nginx-net
restart: unless-stopped
command: /app/run_server.sh
logging:
driver: json-file
options:
max-size: "10m" # Maximum size of a single log file
max-file: "3" # Maximum number of log files to keep (rotates after 3 files)
deploy:
resources:
limits:
memory: 8000M
environment:
VIRTUAL_HOST: structure-masst.gnps2.org
VIRTUAL_PORT: 5000
LETSENCRYPT_HOST: structure-masst.gnps2.org
LETSENCRYPT_EMAIL: mwang87@gmail.com
structure-masst-datasette:
ports:
- "5235:5234" # This port selection of the internal port matching the external port of the web server is to get around a datasette bug
image: datasetteproject/datasette:0.64.6
container_name: structure-masst-datasette
volumes:
- ./database/:/app/database:ro
- ./run_datasette.sh:/app/run_datasette.sh
networks:
- nginx-net
- default
restart: always
command: /app/run_datasette.sh
logging:
driver: json-file
options:
max-size: "10m" # Maximum size of a single log file
max-file: "3" # Maximum number of log files to keep (rotates after 3 files)
deploy:
resources:
limits:
memory: 8000M
environment:
VIRTUAL_HOST: masst-records.gnps2.org
VIRTUAL_PORT: 5234
LETSENCRYPT_HOST: masst-records.gnps2.org
LETSENCRYPT_EMAIL: mwang87@gmail.com
structure-masst-redis:
image: redis:7.2
container_name: structure-masst-redis
networks:
- default
restart: unless-stopped
command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
structure-masst-worker:
build:
context: .
dockerfile: Dockerfile
container_name: structure-masst-worker
command: /app/run_worker.sh
volumes:
- ./logs:/app/logs:rw
- ./database/:/app/database:ro
- ./sessionoutput:/app/sessionoutput:rw
depends_on:
- structure-masst-redis
networks:
- default
restart: unless-stopped
networks:
nginx-net:
external:
name: nginx-net