forked from CenterForOpenScience/osf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
279 lines (246 loc) · 7.21 KB
/
docker-compose.yml
File metadata and controls
279 lines (246 loc) · 7.21 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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
# Reference README-docker-compose.md for instructions.
version: '2'
volumes:
postgres_data_vol:
external: false
tokumx_data_vol:
external: false
elasticsearch_data_vol:
external: false
rabbitmq_vol:
external: false
preprints_dist_vol:
external: false
mfr_requirements_vol:
external: false
wb_requirements_vol:
external: false
wb_osfstoragecache_vol:
external: false
osf_requirements_vol:
external: false
osf_node_modules_vol:
external: false
osf_bower_components_vol:
external: false
services:
###################
# Shared Services #
###################
elasticsearch:
image: elasticsearch:2
ports:
- 9200:9200
volumes:
- elasticsearch_data_vol:/usr/share/elasticsearch/data
postgres:
image: postgres:9.6
command: /bin/bash -c "sed -i -e 's/max_connections.*/max_connections = 5000/' /var/lib/postgresql/data/postgresql.conf || true && sed -i -e 's/#log_min_duration_statement = .*/log_min_duration_statement = 0/' /var/lib/postgresql/data/postgresql.conf || true && /docker-entrypoint.sh postgres"
ports:
- 5432:5432
environment:
POSTGRES_DB: osf
volumes:
- postgres_data_vol:/var/lib/postgresql/data/
tokumx:
image: quay.io/centerforopenscience/tokumx:latest
command: mongod --ipv6
ports:
- 27017:27017
environment:
TOKU_HUGE_PAGES_OK: 1
volumes:
- tokumx_data_vol:/data/db
rabbitmq:
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq_vol:/var/lib/rabbitmq
# flower:
# image: quay.io/centerforopenscience/osf:develop
# command: python manage.py celery flower
# depends_on:
# - rabbitmq
# ports:
# - 5555:5555
# environment:
# BROKER_URL: amqp://guest:guest@rabbitmq:5672/
#########################
# Modular File Renderer #
#########################
mfr_requirements:
image: quay.io/centerforopenscience/mfr:develop
command: /bin/bash -c "invoke install --develop && cp -Rf /usr/local/lib/python3.5/site-packages /"
restart: 'no'
volumes:
- mfr_requirements_vol:/site-packages
mfr:
image: quay.io/centerforopenscience/mfr:develop
command: invoke server
restart: unless-stopped
ports:
- 7778:7778
env_file:
- .docker-compose.mfr.env
volumes:
- mfr_requirements_vol:/usr/local/lib/python3.5/site-packages
###############
# WaterButler #
###############
wb_requirements:
image: quay.io/centerforopenscience/waterbutler:develop
command: /bin/bash -c "invoke install --develop && cp -Rf /usr/local/lib/python3.5/site-packages /"
restart: 'no'
volumes:
- wb_requirements_vol:/site-packages
wb:
image: quay.io/centerforopenscience/waterbutler:develop
command: invoke server
restart: unless-stopped
ports:
- 7777:7777
env_file:
- .docker-compose.wb.env
volumes:
- wb_requirements_vol:/usr/local/lib/python3.5/site-packages
- wb_osfstoragecache_vol:/code/website/osfstoragecache
##################################
# Central Authentication Service #
##################################
fakecas:
image: quay.io/centerforopenscience/fakecas:master
command: fakecas -host=0.0.0.0:8080 -osfhost=192.168.168.167:5000 -dbaddress=postgres://postgres@postgres:5432/osf?sslmode=disable
restart: unless-stopped
ports:
- 8080:8080
depends_on:
- postgres
#############
# Preprints #
#############
preprints:
image: quay.io/centerforopenscience/ember-preprints:develop
command: /bin/bash -c "npm install && ./node_modules/bower/bin/bower install --allow-root --config.intedractive=false && ./node_modules/ember-cli/bin/ember serve --host 0.0.0.0 --port 4200"
restart: unless-stopped
environment:
- BACKEND=local
expose:
- 4200
ports:
- 4200:4200
volumes:
- preprints_dist_vol:/code/dist
#######
# OSF #
#######
requirements:
image: quay.io/centerforopenscience/osf:develop
command: /bin/bash -c "invoke requirements --quick && cp -Rf /usr/local/lib/python2.7/site-packages /"
restart: 'no'
volumes:
- osf_requirements_vol:/site-packages
assets:
image: quay.io/centerforopenscience/osf:develop
command: invoke assets -dw
restart: unless-stopped
volumes:
- osf_requirements_vol:/usr/local/lib/python2.7/site-packages
- osf_bower_components_vol:/code/website/static/vendor/bower_components
- osf_node_modules_vol:/code/node_modules
sharejs:
image: quay.io/centerforopenscience/osf:develop
command: invoke sharejs
restart: unless-stopped
ports:
- 7007:7007
depends_on:
- tokumx
env_file:
- .docker-compose.sharejs.env
volumes:
- osf_requirements_vol:/usr/local/lib/python2.7/site-packages
- osf_node_modules_vol:/code/node_modules
# beat:
# image: quay.io/centerforopenscience/osf:develop
# command: invoke celery_beat
# depends_on:
# - postgres
# - rabbitmq
# environment:
# C_FORCE_ROOT: 1
# env_file:
# - .docker-compose.env
# volumes:
# - osf_requirements_vol:/usr/local/lib/python2.7/site-packages
# - osf_bower_components_vol:/code/website/static/vendor/bower_components
# - osf_node_modules_vol:/code/node_modules
worker:
image: quay.io/centerforopenscience/osf:develop
command: invoke celery_worker
restart: unless-stopped
depends_on:
- postgres
- rabbitmq
- elasticsearch
environment:
C_FORCE_ROOT: 1
env_file:
- .docker-compose.env
volumes:
- osf_requirements_vol:/usr/local/lib/python2.7/site-packages
- osf_bower_components_vol:/code/website/static/vendor/bower_components
- osf_node_modules_vol:/code/node_modules
# admin:
# image: quay.io/centerforopenscience/osf:develop
# command: invoke adminserver -h 0.0.0.0
# restart: unless-stopped
# ports:
# - 8001:8001
# depends_on:
# - tokumx
## - rabbitmq
# - elasticsearch
# env_file:
# - .docker-compose.env
# stdin_open: true
# tty: true
# volumes:
# - osf_requirements_vol:/usr/local/lib/python2.7/site-packages
# - osf_node_modules_vol:/code/node_modules
api:
image: quay.io/centerforopenscience/osf:develop
command: invoke apiserver -h 0.0.0.0
restart: unless-stopped
ports:
- 8000:8000
depends_on:
- postgres
- tokumx
# - rabbitmq
- elasticsearch
env_file:
- .docker-compose.env
volumes:
- osf_requirements_vol:/usr/local/lib/python2.7/site-packages
- osf_bower_components_vol:/code/website/static/vendor/bower_components
- osf_node_modules_vol:/code/node_modules
web:
image: quay.io/centerforopenscience/osf:develop
command: invoke server -h 0.0.0.0
restart: unless-stopped
ports:
- 5000:5000
depends_on:
- postgres
- tokumx
# - rabbitmq
- elasticsearch
env_file:
- .docker-compose.env
volumes:
- osf_requirements_vol:/usr/local/lib/python2.7/site-packages
- osf_bower_components_vol:/code/website/static/vendor/bower_components
- osf_node_modules_vol:/code/node_modules
- preprints_dist_vol:/preprints