-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-local.yml
264 lines (243 loc) · 6.69 KB
/
docker-compose-local.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
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
# (C) Copyright 2017 o2r project. https://o2r.info
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
---
version: '2'
volumes:
o2rvol: {}
services:
mongodb:
image: mongo:3.6
command: "--replSet rso2r"
configmongodb:
image: mongo:3.6
depends_on:
- mongodb
command: bash -c "sleep 5; mongo --verbose --host mongodb --eval 'printjson(rs.initiate()); printjson(rs.conf()); printjson(rs.status()); printjson(rs.slaveOk());'"
mongoadmin:
image: adicom/admin-mongo:latest
depends_on:
- mongodb
environment:
- DB_HOST=mongodb
- CONN_NAME=Local
ports:
- "1234:1234"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.10
environment:
- cluster.name=o2rplatform-es-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.10
environment:
- cluster.name=o2rplatform-es-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
- "xpack.security.enabled=false"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
meta:
image: o2r_refimpl_meta
build:
context: o2r-meta
containerit:
image: o2r_refimpl_containerit
build:
context: containerit
dockerfile: inst/docker/geospatial/Dockerfile.local
muncher:
image: o2r_refimpl_muncher
build:
context: ./o2r-muncher
depends_on:
- configmongodb
volumes:
- o2rvol:/tmp/o2r
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "MUNCHER_MONGODB=mongodb://mongodb:27017/"
- MUNCHER_PORT=8080
- MUNCHER_VOLUME=referenceimplementation_o2rvol
- MUNCHER_CONTAINER_USER=root
- MUNCHER_CONTAINERIT_USER=root
- MUNCHER_CONTAINERIT_IMAGE=o2r_refimpl_containerit
- DEBUG=*,-mquery,-express:*,-express-session,-body-parser:*
- "MUNCHER_META_TOOL_CONTAINER=o2r_refimpl_meta"
loader:
image: o2r_refimpl_loader
build:
context: ./o2r-loader
depends_on:
- configmongodb
volumes:
- o2rvol:/tmp/o2r
- /var/run/docker.sock:/var/run/docker.sock
environment:
- "LOADER_MONGODB=mongodb://mongodb:27017/"
- LOADER_PORT=8088
- DEBUG=*,-mquery,-express:*,-express-session,-body-parser:*
- LOADER_VOLUME=referenceimplementation_o2rvol
- "LOADER_META_TOOL_CONTAINER=o2r_refimpl_meta"
informer:
image: o2r_refimpl_informer
build:
context: ./o2r-informer
depends_on:
- configmongodb
environment:
- "INFORMER_MONGODB=mongodb://mongodb:27017/"
- INFORMER_MONGODB_HOST=mongodb
- INFORMER_PORT=8082
- DEBUG=informer
bouncer:
image: o2r_refimpl_bouncer
build:
context: ./o2r-bouncer
depends_on:
- configmongodb
environment:
- "BOUNCER_MONGODB=mongodb://mongodb:27017/"
- BOUNCER_PORT=8083
- DEBUG=bouncer
- OAUTH_URL_CALLBACK=${OAUTH_URL_CALLBACK}
- OAUTH_URL_AUTHORIZATION=${OAUTH_URL_AUTHORIZATION}
- OAUTH_URL_TOKEN=${OAUTH_URL_TOKEN}
- OAUTH_STARTUP_FAIL_ON_ERROR=false
finder:
image: o2r_refimpl_finder
build:
context: ./o2r-finder
depends_on:
- configmongodb
- elasticsearch
volumes:
- o2rvol:/tmp/o2r
environment:
- "FINDER_MONGODB=mongodb://mongodb:27017/"
- FINDER_PORT=8084
- DEBUG=finder,finder:*
- ELASTIC_SEARCH_URL=elasticsearch:9200
- "MONGO_DATA_URL=mongodb://mongodb/muncher"
- "MONGO_OPLOG_URL=mongodb://mongodb/muncher"
- BATCH_COUNT=5
transporter:
image: o2r_refimpl_transporter
build:
context: ./o2r-transporter
depends_on:
- configmongodb
volumes:
- o2rvol:/tmp/o2r
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TRANSPORTER_MONGODB=mongodb://mongodb:27017/"
- TRANSPORTER_PORT=8081
- DEBUG=transporter,transporter:*
shipper:
image: o2r_refimpl_shipper
build:
context: ./o2r-shipper
depends_on:
- configmongodb
volumes:
- o2rvol:/tmp/o2r
environment:
SHIPPER_MONGODB: "mongodb://mongodb"
SHIPPER_REPO_TOKENS: "${SHIPPER_REPO_TOKENS}"
SHIPPER_BOTTLE_HOST: "0.0.0.0"
SHIPPER_BASE_PATH: "/tmp/o2r"
PYTHONUNBUFFERED: "0"
substituter:
image: o2r_refimpl_substituter
build:
context: ./o2r-substituter
depends_on:
- configmongodb
volumes:
- o2rvol:/tmp/o2r
environment:
- "SUBSTITUTER_MONGODB=mongodb://mongodb:27017/"
- SUBSTITUTER_PORT=8090
- DEBUG=substituter,substituter:*
inspecter:
image: o2r_refimpl_inspecter
build:
context: ./o2r-inspecter
volumes:
- o2rvol:/tmp/o2r
environment:
- INSPECTER_PORT=8091
- DEBUGME=inspecter
bindings:
image: o2r_refimpl_bindings
build:
context: ./o2r-bindings
ports:
- "5000-5499:5000-5499"
volumes:
- o2rvol:/tmp/o2r
environment:
- DEBUG=bindings
guestlister:
image: o2r_refimpl_guestlister
build:
context: ./o2r-guestlister
depends_on:
- configmongodb
environment:
- "GUESTLISTER_MONGODB=mongodb://mongodb:27017/"
- GUESTLISTER_PORT=8383
- DEBUG=guestlister
- OAUTH_URL_CALLBACK=${OAUTH_URL_CALLBACK}
- OAUTH_URL_AUTHORIZATION=${OAUTH_URL_AUTHORIZATION}
- OAUTH_URL_TOKEN=${OAUTH_URL_TOKEN}
platform:
image: o2r_refimpl_platform
build:
context: ./o2r-platform
restart: unless-stopped
webserver:
image: nginx:latest
restart: unless-stopped
depends_on:
- bouncer
- finder
- muncher
- informer
- inspecter
- loader
- transporter
- shipper
- substituter
volumes:
- "./etc/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./api/site/:/www/docs/api:ro"
- "./architecture/site/:/www/docs/architecture:ro"
- "./erc-spec/site/:/www/docs/erc-spec:ro"
- "./etc/index.html:/www/docs/index.html:ro"
ports:
- "80:80"