forked from parameter1/base-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
399 lines (365 loc) · 10.5 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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
version: '3.7'
x-env-defaults: &env
YARN_CACHE_FOLDER: /.yarn-cache
NODE_ENV: development
TERMINUS_TIMEOUT: 1000
TERMINUS_SHUTDOWN_DELAY: 0
x-env-newrelic: &env-newrelic
NEW_RELIC_ENABLED: ${NEW_RELIC_ENABLED-0}
NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY-(unset)}
x-env-mongo: &env-mongo
MONGO_DSN: ${MONGO_DSN-mongodb://mongodb:27017}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
x-env-elastic: &env-elastic
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL-http://elasticsearch:9200}
x-node-defaults: &node
tty: true
init: true
image: node:10.15
entrypoint: ["node"]
working_dir: /base-cms
volumes:
- .:/base-cms:cached
- ./node_modules:/base-cms/node_modules:delegated
- yarn-cache:/.yarn-cache
environment:
<<: *env
services:
commands:
<<: *node
working_dir: /base-cms
entrypoint: ["tail"]
command: ["-f", "/dev/null"]
mongodb:
tty: true
image: mongo:3.4
volumes:
- mongodb:/data/db
ports:
- "10000:27017"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.4.2
environment:
discovery.type: single-node
volumes:
- esdata:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana-oss:6.4.2
environment:
server.name: kibana
ELASTICSEARCH_URL: "${ELASTICSEARCH_URL-http://elasticsearch:9200}"
LOGGING_QUIET: "true"
depends_on:
- elasticsearch
ports:
- "10001:5601"
redis:
tty: true
image: redis:6.0-alpine
ports:
- "10002:6379"
keyword-analysis:
<< : *node
working_dir: /base-cms/services/keyword-analysis
command: ["src"]
environment:
<<: *env
<<: *env-mongo
<<: *env-newrelic
<<: *env-elastic
depends_on:
- mongodb
- elasticsearch
- kibana
# GRAPHQL
graphql-server:
<< : *node
working_dir: /base-cms/services/graphql-server
entrypoint: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-mongo
<<: *env-newrelic
REDIS_CACHE_DSN: ${REDIS_CACHE_DSN-redis://redis}
APOLLO_ENGINE_ENABLED: ${APOLLO_ENGINE_ENABLED-false}
APOLLO_ENGINE_API_KEY: ${APOLLO_ENGINE_API_KEY-}
GRAPHQL_CACHE_CONTROL_ENABLED: ${GRAPHQL_CACHE_CONTROL_ENABLED-false}
GRAPHQL_DEBUG_ENABLED: ${GRAPHQL_DEBUG_ENABLED-false}
GRAPHQL_INTROSPECTION_ENABLED: ${GRAPHQL_INTROSPECTION_ENABLED-true}
GRAPHQL_PLAYGROUND_ENABLED: ${GRAPHQL_PLAYGROUND_ENABLED-false}
GRAPHQL_TRACING_ENABLED: ${GRAPHQL_TRACING_ENABLED-false}
BASE4_REST_USERNAME: ${BASE4_REST_USERNAME-}
BASE4_REST_PASSWORD: ${BASE4_REST_PASSWORD-}
TOKEN_SECRET: ${TOKEN_SECRET-ThisValueIsNotSecretChangeIt}
TOKEN_NAMESPACE: ${TOKEN_NAMESPACE-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}
CDN_ASSET_HOSTNAME: ${CDN_ASSET_HOSTNAME-cdn.baseplatform.io}
CDN_IMAGE_HOSTNAME: ${CDN_IMAGE_HOSTNAME-base.imgix.net}
PORT: 80
EXPOSED_PORT: 10100
depends_on:
- mongodb
- redis
- google-data-api
ports:
- "10100:80"
graphql-server-leonis:
<< : *node
working_dir: /base-cms/services/graphql-server
entrypoint: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_PLAYGROUND_ENABLED: 1
MONGO_DSN: ${MONGO_DSN_LEONIS-mongodb://mongodb:27017}
REDIS_CACHE_DSN: ${REDIS_CACHE_DSN_LEONIS-redis://redis}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
ENGINE_API_KEY: ${ENGINE_API_KEY-(unset)}
BASE4_REST_USERNAME: ${BASE4_REST_USERNAME-}
BASE4_REST_PASSWORD: ${BASE4_REST_PASSWORD-}
TOKEN_SECRET: ${TOKEN_SECRET-ThisValueIsNotSecretChangeIt}
TOKEN_NAMESPACE: ${TOKEN_NAMESPACE-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}
PORT: 80
EXPOSED_PORT: 10101
depends_on:
- mongodb
- google-data-api
ports:
- "10101:80"
graphql-server-tauron:
<< : *node
working_dir: /base-cms/services/graphql-server
entrypoint: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_PLAYGROUND_ENABLED: 1
MONGO_DSN: ${MONGO_DSN_TAURON-mongodb://mongodb:27017}
REDIS_CACHE_DSN: ${REDIS_CACHE_DSN_TAURON-redis://redis}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
ENGINE_API_KEY: ${ENGINE_API_KEY-(unset)}
BASE4_REST_USERNAME: ${BASE4_REST_USERNAME-}
BASE4_REST_PASSWORD: ${BASE4_REST_PASSWORD-}
TOKEN_SECRET: ${TOKEN_SECRET-ThisValueIsNotSecretChangeIt}
TOKEN_NAMESPACE: ${TOKEN_NAMESPACE-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}
PORT: 80
EXPOSED_PORT: 10102
depends_on:
- mongodb
- google-data-api
ports:
- "10102:80"
graphql-server-virgon:
<< : *node
working_dir: /base-cms/services/graphql-server
entrypoint: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_PLAYGROUND_ENABLED: 1
MONGO_DSN: ${MONGO_DSN_VIRGON-mongodb://mongodb:27017}
REDIS_CACHE_DSN: ${REDIS_CACHE_DSN_VIRGON-redis://redis}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
ENGINE_API_KEY: ${ENGINE_API_KEY-(unset)}
BASE4_REST_USERNAME: ${BASE4_REST_USERNAME-}
BASE4_REST_PASSWORD: ${BASE4_REST_PASSWORD-}
TOKEN_SECRET: ${TOKEN_SECRET-ThisValueIsNotSecretChangeIt}
TOKEN_NAMESPACE: ${TOKEN_NAMESPACE-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee}
PORT: 80
EXPOSED_PORT: 10103
depends_on:
- mongodb
- redis
- google-data-api
ports:
- "10103:80"
# RSS
rss:
<< : *node
working_dir: /base-cms/services/rss
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10200
depends_on:
- graphql-server
ports:
- "10200:80"
rss-leonis:
<< : *node
working_dir: /base-cms/services/rss
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-leonis
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10201
depends_on:
- graphql-server-leonis
ports:
- "10201:80"
rss-tauron:
<< : *node
working_dir: /base-cms/services/rss
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-tauron
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10202
depends_on:
- graphql-server-tauron
ports:
- "10202:80"
rss-virgon:
<< : *node
working_dir: /base-cms/services/rss
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-virgon
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10203
depends_on:
- graphql-server-virgon
ports:
- "10203:80"
# SITEMAPS
sitemaps:
<< : *node
working_dir: /base-cms/services/sitemaps
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10300
depends_on:
- graphql-server
ports:
- "10300:80"
sitemaps-leonis:
<< : *node
working_dir: /base-cms/services/sitemaps
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-leonis
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10301
depends_on:
- graphql-server-leonis
ports:
- "10301:80"
sitemaps-tauron:
<< : *node
working_dir: /base-cms/services/sitemaps
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-tauron
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10302
depends_on:
- graphql-server-tauron
ports:
- "10302:80"
sitemaps-virgon:
<< : *node
working_dir: /base-cms/services/sitemaps
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: http://graphql-server-virgon
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-}
PORT: 80
EXPOSED_PORT: 10303
depends_on:
- graphql-server-virgon
ports:
- "10303:80"
# EXAMPLES / OTHER
example-leaders-program:
<< : *node
working_dir: /base-cms/packages/leaders-program
entrypoint: ["/base-cms/node_modules/.bin/vue-cli-service"]
command: ["serve", "src/dev.js", "--port", "10400"]
environment:
<<: *env
ports:
- "10400:10400"
hooks:
<< : *node
working_dir: /base-cms/services/hooks
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-mongo
<<: *env-newrelic
VIRGON_DSN: ${VIRGON_DSN-mongodb://mongodb:27017}
TAURON_DSN: ${TAURON_DSN-mongodb://mongodb:27017}
LEONIS_DSN: ${LEONIS_DSN-mongodb://mongodb:27017}
ENABLE_BASEDB_LOGGING: ${ENABLE_BASEDB_LOGGING-false}
depends_on:
- mongodb
ports:
- "10401:80"
oembed:
<< : *node
working_dir: /base-cms/services/oembed
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
EMBEDLY_API_KEY: ${EMBEDLY_API_KEY-}
ports:
- "10402:80"
google-data-api:
<< : *node
working_dir: /base-cms/services/google-data-api
command: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GOOGLE_DATA_MONGO_DSN: ${GOOGLE_DATA_MONGO_DSN-mongodb://mongodb}
GOOGLE_API_KEY: ${GOOGLE_API_KEY}
PORT: 80
EXPOSED_PORT: 10403
depends_on:
- mongodb
ports:
- "10403:80"
omail-link-processor-virgon:
<<: *node
working_dir: /base-cms/services/omail-link-processor
entrypoint: ["/base-cms/node_modules/.bin/gulp"]
environment:
<<: *env
<<: *env-newrelic
GRAPHQL_URI: ${GRAPHQL_URI-http://graphql-server-virgon}
PORT: 80
EXPOSED_PORT: 10404
depends_on:
- graphql-server-virgon
ports:
- "10404:80"
volumes:
esdata: {}
mongodb: {}
yarn-cache: {}