-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yaml
92 lines (85 loc) · 1.98 KB
/
compose.yaml
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
91
92
services:
web:
image: registry.gitlab.com/mlpds_mit/askcosv2/askcos-vue-nginx:2.0
restart: always
network_mode: host
volumes:
- './nginx.conf:/etc/nginx/nginx.conf'
- './askcos.ssl.cert:/etc/ssl/certs/askcos.ssl.cert'
- './askcos.ssl.key:/etc/ssl/private/askcos.ssl.key'
ports:
- "80:80"
- "443:443"
depends_on:
- app
- celery_workers
app:
image: ${ASKCOS_REGISTRY}/app:2.0
hostname: app
restart: always
env_file:
- .env
network_mode: host
volumes:
- "askcosv2_precompute:/ASKCOSv2/askcos2_core/data/precompute"
- "./data/db:/usr/local/askcos-data/db"
depends_on:
- mongo
precompute:
image: ${ASKCOS_REGISTRY}/precompute:2.0
tty: true
hostname: precompute
restart: always
env_file:
- .env
network_mode: host
volumes:
- "askcosv2_precompute:/ASKCOSv2/askcos2_core/data/precompute"
depends_on:
- mongo
mongo:
image: mongo:6.0.9-jammy
hostname: mongo
restart: always
env_file:
- .env
ports:
- "${MONGO_PORT}:${MONGO_PORT}"
volumes:
- "askcosv2_mongo_data:/data/db"
- "./data/db:/usr/local/askcos-data/db"
command: --wiredTigerCacheSizeGB 1.5
rabbitmq:
image: rabbitmq:3.11-alpine
hostname: rabbitmq
restart: always
env_file:
- .env
ports:
- "${RABBITMQ_PORT}:${RABBITMQ_PORT}"
redis:
image: redis:7.0-alpine
hostname: redis
restart: always
env_file:
- .env
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
volumes:
- "askcosv2_redisdata:/data"
command: redis-server --port ${REDIS_PORT}
celery_workers:
image: ${ASKCOS_REGISTRY}/celery:2.0
restart: always
env_file:
- .env
network_mode: host
volumes:
- "askcosv2_precompute:/ASKCOSv2/askcos2_core/data/precompute"
depends_on:
- rabbitmq
- redis
volumes:
askcosv2_redisdata:
askcosv2_mongo_data:
askcosv2_precompute: