-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
149 lines (133 loc) · 4.07 KB
/
docker-compose.yml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: "2.2"
services:
nginx:
image: ${PUBLIC_IMAGE_REGISTRY}nginx:1.19-alpine
restart: always
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf"
- "./uwsgi_params:/etc/nginx/uwsgi_params"
- "./askcos.ssl.cert:/etc/ssl/certs/askcos.ssl.cert"
- "./askcos.ssl.key:/etc/ssl/private/askcos.ssl.key"
- "staticdata:/static"
ports:
- "80:80"
- "443:443"
mysql:
image: ${PUBLIC_IMAGE_REGISTRY}mysql:5.7
hostname: mysql
restart: always
env_file:
- .env
volumes:
- "mysql_data:/var/lib/mysql"
expose:
- "3306"
mongo:
image: ${PUBLIC_IMAGE_REGISTRY}mongo:4.4
command: --wiredTigerCacheSizeGB 1.5
hostname: mongo
restart: always
env_file:
- .env
volumes:
- "mongo_data:/data/db"
- "appdata:/data/app"
app:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
hostname: app
restart: always
env_file:
- .env
- customization
environment:
- VERSION_NUMBER # this overrides value in .env if a different value was specified to deploy.sh
- UPDATE_DATE
command: bash -c "uwsgi --socket :8000 --master --processes=4 --wsgi-file /usr/local/askcos-site/wsgi.py -b 32768"
expose:
- "8000"
volumes:
- "staticdata:/usr/local/askcos-site/static"
- "appdata:/usr/local/askcos-core/askcos/data"
cr_network_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 2 -Q cr_network_worker -n cr_network_worker@%h --pool=gevent"
tb_coordinator_mcts:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 1 -Q tb_coordinator_mcts -n tb_coordinator_mcts@%h --pool=gevent --without-heartbeat"
tb_c_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 12 -Q tb_c_worker -n tb_c_worker@%h --pool=gevent"
sites_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 1 -Q sites_worker --pool=gevent -n sites_worker@%h"
selec_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 1 -Q selec_worker --pool=gevent -n selec_worker@%h"
impurity_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 1 -Q impurity_worker --pool=gevent -n impurity_worker@%h"
atom_mapping_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 3 -Q atom_mapping_worker --pool=gevent -n atom_mapping_worker@%h"
tffp_worker:
image: ${ASKCOS_SITE_IMAGE_REGISTRY}askcos-site:${VERSION_NUMBER}
restart: always
env_file:
- .env
command: bash -c "celery -A askcos_site worker -c 5 -Q tffp_worker --pool=gevent -n tffp_worker@%h"
template-relevance-reaxys:
image: ${ASKCOS_IMAGE_REGISTRY}template-relevance-reaxys:1.0
restart: always
expose:
- 8501
fast-filter:
image: ${ASKCOS_IMAGE_REGISTRY}fast-filter:1.0
restart: always
expose:
- 8501
redis:
image: ${PUBLIC_IMAGE_REGISTRY}redis:6.0-alpine
hostname: redis
env_file:
- .env
restart: always
expose:
- "${REDIS_PORT}"
volumes:
- "redisdata:/data"
command: redis-server --port ${REDIS_PORT}
rabbit:
image: ${PUBLIC_IMAGE_REGISTRY}rabbitmq:3.8-alpine
hostname: rabbit
env_file:
- .env
restart: always
expose:
- "${RABBITMQ_NODE_PORT}"
volumes:
redisdata:
mysql_data:
mongo_data:
staticdata:
appdata: