-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
213 lines (198 loc) · 5.86 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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# WARNING: If you are using on Intuition Docker, comment out all the secrets.
version: '3.8'
services:
pidc:
build:
context: ./pidc
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5004:5000
secrets:
- gennifer_key
environment:
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'pidc:create_app()'
command: flask --app pidc run --debug --host 0.0.0.0
depends_on:
- redis
worker-pidc:
build:
context: ./pidc
dockerfile: Dockerfile
command: celery --app pidc.tasks.celery worker -Q pidc --loglevel=info
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- pidc
- redis
grisli:
build:
context: ./grisli
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5004:5000
secrets:
- gennifer_key
environment:
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- PYTHONUNBUFFERED=1
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'pidc:create_app()'
command: flask --app grisli run --debug --host 0.0.0.0
depends_on:
- redis
worker-grisli:
build:
context: ./grisli
dockerfile: Dockerfile
command: celery --app grisli.tasks.celery worker -Q grisli --loglevel=info
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- PYTHONUNBUFFERED=1
depends_on:
- grisli
- redis
genie3:
build:
context: ./genie3
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5004:5000
secrets:
- gennifer_key
environment:
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'genie3:create_app()'
command: flask --app genie3 run --debug --host 0.0.0.0
depends_on:
- redis
worker-genie3:
build:
context: ./genie3
dockerfile: Dockerfile
command: celery --app genie3.tasks.celery worker -Q genie3 --loglevel=info
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- genie3
- redis
grnboost2:
build:
context: ./grnboost2
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5004:5000
secrets:
- gennifer_key
environment:
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'grnboost2:create_app()'
command: flask --app grnboost2 run --debug --host 0.0.0.0
depends_on:
- redis
worker-grnboost2:
build:
context: ./grnboost2
dockerfile: Dockerfile
command: celery --app grnboost2.tasks.celery worker -Q grnboost2 --loglevel=info
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- grnboost2
- redis
bkb-grn:
build:
context: ./bkb-grn
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5005:5000
secrets:
- gennifer_key
environment:
- PYTHONUNBUFFERED=1
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'grnboost2:create_app()'
command: flask --app bkb_grn run --debug --host 0.0.0.0
depends_on:
- redis
worker-bkb-grn:
build:
context: ./bkb-grn
dockerfile: Dockerfile
secrets:
- gurobi_lic
command: celery --app bkb_grn.tasks.celery worker -Q bkb_grn --loglevel=info
environment:
- PYTHONUNBUFFERED=1
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- GRB_LICENSE_FILE=/run/secrets/gurobi_lic
depends_on:
- bkb-grn
- redis
annotator:
build:
context: ./annotator
dockerfile: Dockerfile
restart: always
user: gennifer_user
ports:
- 5006:5000
secrets:
- gennifer_key
- openai_api_key
environment:
- SECRET_KEY_FILE=/run/secrets/gennifer_key
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- OPENAI_API_KEY_FILE=/run/secrets/openai_api_key
#command: gunicorn -c gunicorn.config.py -b 0.0.0.0:5000 'genie3:create_app()'
command: flask --app annotator run --debug --host 0.0.0.0
depends_on:
- redis
worker-annotator:
build:
context: ./annotator
dockerfile: Dockerfile
command: celery --app annotator.tasks.celery worker -Q annotation --loglevel=info
secrets:
- openai_api_key
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- OPENAI_API_KEY_FILE=/run/secrets/openai_api_key
depends_on:
- annotator
- redis
redis:
image: redis:6-alpine
secrets:
gennifer_key:
file: secrets/gennifer/secret_key.txt
gurobi_lic:
file: secrets/gennifer/gurobi.lic
openai_api_key:
file: secrets/gennifer/openai_api_key.txt