forked from CenterForOpenScience/osf.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.linux.yml
158 lines (143 loc) · 4 KB
/
docker-compose.linux.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
150
151
152
153
154
155
156
157
158
version: "3"
services:
requirements:
volumes:
- ./:/code
assets:
volumes:
- ./:/code
admin_assets:
volumes:
- ./:/code
worker:
volumes:
- ./:/code
admin:
volumes:
- ./:/code
web:
volumes:
- ./:/code
api:
volumes:
- ./:/code
# Additional configuration for development on services linked with osf.io
# beat:
# volumes:
# - ./:/code
# fakecas:
# image: quay.io/centerforopenscience/fakecas:master
# command: fakecas -host=0.0.0.0:8080 -osfhost=localhost:5000 -dbaddress=postgres://postgres@postgres:5432/osf?sslmode=disable
# wb:
# volumes:
# - ../waterbutler:/code
# wb_worker:
# volumes:
# - ../waterbutler:/code
# wb_requirements:
# volumes:
# - ../waterbutler:/code
# mfr:
# volumes:
# - ../modular-file-renderer:/code
# mfr_requirements:
# volumes:
# - ../modular-file-renderer:/code
# preprints:
# volumes:
# - ../ember-preprints:/code
#
## # Use this for ember-osf linked development:
## - preprints_dist_vol:/code/dist
## - ../ember-osf:/ember-osf
## depends_on:
## - emberosf
## command:
## - /bin/bash
## - -c
## - cd /ember-osf &&
## yarn link &&
## cd /code &&
## (rm -r node_modules || true) &&
## yarn --frozen-lockfile &&
## yarn link @centerforopenscience/ember-osf &&
## (rm -r bower_components || true) &&
## ./node_modules/.bin/bower install --allow-root --config.interactive=false &&
## yarn start --host 0.0.0.0 --port 4201 --live-reload-port 41954
# registries:
# volumes:
# - ../ember-osf-registries:/code
#
## # Use this for ember-osf linked development:
## - registries_dist_vol:/code/dist
## - ../ember-osf:/ember-osf
## depends_on:
## - emberosf
## command:
## - /bin/bash
## - -c
## - cd /ember-osf &&
## yarn link &&
## cd /code &&
## (rm -r node_modules || true) &&
## yarn --frozen-lockfile &&
## yarn link @centerforopenscience/ember-osf &&
## (rm -r bower_components || true) &&
## ./node_modules/.bin/bower install --allow-root --config.interactive=false &&
## yarn start --host 0.0.0.0 --port 4202 --live-reload-port 41955
# reviews:
# volumes:
# - reviews-sync:/code:nocopy
#
## # Use this for ember-osf linked development (with docker-sync):
## - reviews_dist_vol:/code/dist
## - emberosf-sync:/ember-osf
## depends_on:
## - emberosf
## command:
## - /bin/bash
## - -c
## - cd /ember-osf &&
## yarn link &&
## cd /code &&
## yarn link @centerforopenscience/ember-osf &&
## yarn --frozen-lockfile &&
## yarn start --host 0.0.0.0 --port 4203 --live-reload-port 41956
# # Use this for ember-osf linked development:
# emberosf:
# build: ../ember-osf
# command:
# - /bin/bash
# - -c
# - (rm -r node_modules || true) &&
# yarn --frozen-lockfile --ignore-engines &&
# (rm -r bower_components || true) &&
# ./node_modules/.bin/bower install --allow-root --config.interactive=false
# volumes:
# - ../ember-osf:/code
# ####################
# # RabbitMQ SSL
# # Enable this, place the certs in ./ssl, and uncomment the BROKER_USE_SSL dictionary in local.py
# # Uncomment lines under worker in docker-compose
# #####################
# rabbitmq:
# ports:
# - 5671:5671
# environment:
# RABBITMQ_SSL_CERTFILE: /etc/ssl/server_certificate.pem
# RABBITMQ_SSL_KEYFILE: /etc/ssl/server_key.pem
# RABBITMQ_SSL_CACERTFILE: /etc/ssl/ca_certificate.pem
# volumes:
# - ./ssl/celery-server.cert.pem:/etc/ssl/server_certificate.pem:ro
# - ./ssl/celery-server.key.pem:/etc/ssl/server_key.pem:ro
# - ./ssl/ca-chain.cert.pem:/etc/ssl/ca_certificate.pem:ro
# sharejs:
# volumes:
# - sharejs-sync:/code:nocopy
#
# command:
# - /bin/sh
# - -c
# - |-
# npm install
# gosu node npm start