This repository has been archived by the owner on Mar 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
257 lines (239 loc) · 7.39 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
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
# (C) Copyright 2016 The 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' # version 3 is for stack deployments, see https://github.com/docker/compose/issues/4513
volumes:
o2rstorage: {}
services:
mongodb:
image: mongo:3.4
command: "--replSet rso2r"
configmongodb:
image: mongo:3.4
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());'"
adminmongo:
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.4
environment:
- cluster.name=o2rplatform-es-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=false"
- "cluster.routing.allocation.disk.watermark.low=5gb"
- "cluster.routing.allocation.disk.watermark.high=5gb"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
#ports:
# - "9200:9200"
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4
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"
- "cluster.routing.allocation.disk.watermark.low=5gb"
- "cluster.routing.allocation.disk.watermark.high=5gb"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
#kibana:
# image: docker.elastic.co/kibana/kibana:5.6.4
# environment:
# - "ELASTICSEARCH_URL=http://elasticsearch:9200"
# ports:
# - "5601:5601"
# depends_on:
# - elasticsearch
muncher:
image: o2rproject/o2r-muncher:0.21.0
depends_on:
- mongodb
- configmongodb
volumes:
- o2rstorage:/tmp/o2r
- /var/run/docker.sock:/var/run/docker.sock
# FIXME: remove mount to volumes, only works under Linux, see https://github.com/o2r-project/o2r-muncher/issues/80
- /var/lib/docker/volumes/:/var/lib/docker/volumes
environment:
- "MUNCHER_MONGODB=mongodb://mongodb:27017/"
- MUNCHER_PORT=8080
- MUNCHER_VOLUME=o2rplatform_o2rstorage
- MUNCHER_CONTAINER_USER=root
- MUNCHER_CONTAINERIT_USER=root
- DEBUG=*,-mquery,-express:*,-express-session,-body-parser:*
- "MUNCHER_META_TOOL_CONTAINER=o2rproject/o2r-meta:f79cc1f"
#- "MUNCHER_META_TOOL_CONTAINER=o2rproject/o2r-meta:9198450"
- MUNCHER_SAVE_IMAGE_TARBALL=false # saves space and time during dev
- MUNCHER_CONTAINERIT_IMAGE=o2rproject/containerit:geospatial-0.5.0.9003
- MUNCHER_CONTAINERIT_FILTER_BASE_IMAGE_PKGS=true
#- "MUNCHER_META_TOOL_CONTAINER=meta:dev"
#- MUNCHER_ALLOW_INVALID_METADATA=true
loader:
image: o2rproject/o2r-loader:0.12.0
depends_on:
- mongodb
- configmongodb
volumes:
- o2rstorage:/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=o2rplatform_o2rstorage
- "LOADER_META_TOOL_CONTAINER=o2rproject/o2r-meta:9198450"
#- "LOADER_META_TOOL_CONTAINER=meta:dev"
informer:
image: o2rproject/o2r-informer:0.5.0
depends_on:
- mongodb
- configmongodb
environment:
- "INFORMER_MONGODB=mongodb://mongodb:27017/"
- INFORMER_MONGODB_HOST=mongodb
- INFORMER_MONGODB_PORT=27017
- INFORMER_PORT=8082
- DEBUG=informer,informer:*
bouncer:
image: o2rproject/o2r-bouncer:0.13.0
depends_on:
- mongodb
- configmongodb
environment:
- "BOUNCER_MONGODB=mongodb://mongodb:27017/"
- BOUNCER_PORT=8083
- DEBUG=bouncer,bouncer:*
- OAUTH_URL_CALLBACK=${OAUTH_URL_CALLBACK}
- OAUTH_URL_AUTHORIZATION=${OAUTH_URL_AUTHORIZATION}
- OAUTH_URL_TOKEN=${OAUTH_URL_TOKEN}
- SLACK_VERIFICATION_TOKEN=${SLACK_VERIFICATION_TOKEN}
- SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}
- OAUTH_STARTUP_FAIL_ON_ERROR=false
finder:
image: o2rproject/o2r-finder:0.6.2
depends_on:
- mongodb
- configmongodb
- elasticsearch
volumes:
- o2rstorage:/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=20
transporter:
image: o2rproject/o2r-transporter:0.6.0
depends_on:
- mongodb
- configmongodb
volumes:
- o2rstorage:/tmp/o2r
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TRANSPORTER_MONGODB=mongodb://mongodb:27017/"
- TRANSPORTER_PORT=8081
- DEBUG=transporter,transporter:*
shipper:
image: o2rproject/o2r-shipper:8f95fd6
depends_on:
- mongodb
- configmongodb
volumes:
- o2rstorage:/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: o2rproject/o2r-substituter:0.5.0
depends_on:
- mongodb
- configmongodb
volumes:
- o2rstorage:/tmp/o2r
environment:
- "SUBSTITUTER_MONGODB=mongodb://mongodb:27017/"
- SUBSTITUTER_PORT=8090
- DEBUG=substituter,substituter:*
inspecter:
image: o2rproject/o2r-inspecter:0.0.1
volumes:
- o2rstorage:/tmp/o2r
environment:
- INSPECTER_PORT=8091
- DEBUGME=inspecter
bindings:
image: o2rproject/o2r-bindings:0.0.1
#build: ./bindings/o2r-bindings
ports:
- "5000-5499:5000-5499"
volumes:
- o2rstorage:/tmp/o2r
environment:
- DEBUG=bindings
guestlister:
image: o2rproject/o2r-guestlister:0.2.1
depends_on:
- mongodb
- configmongodb
environment:
- "GUESTLISTER_MONGODB=mongodb://mongodb:27017/"
- GUESTLISTER_PORT=8383
- DEBUG=guestlister,guestlister:*
- OAUTH_URL_CALLBACK=${OAUTH_URL_CALLBACK}
- OAUTH_URL_AUTHORIZATION=${OAUTH_URL_AUTHORIZATION}
- OAUTH_URL_TOKEN=${OAUTH_URL_TOKEN}
platform:
image: nginx:latest
depends_on:
- bouncer
- finder
- muncher
- informer
- loader
- transporter
- shipper
- substituter
- bindings
volumes:
- "./dev/nginx.conf:/etc/nginx/nginx.conf:ro"
#- "./dev/socket.html:/usr/share/nginx/html/dev/socket.html:ro"
- "./client:/usr/share/nginx/html:ro"
ports:
- "80:80"