-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.dev-deps.yml
73 lines (69 loc) · 2.62 KB
/
docker-compose.dev-deps.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
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
services:
# For dependencies, expose ports locally for dev
mongo1:
ports:
- '27017:27017'
volumes:
- './data/mongo:/data/db'
redis:
ports:
- '6379:6379'
elasticsearch:
ports:
- '9200:9200'
- '9300:9300'
volumes:
- './data/elasticsearch:/usr/share/elasticsearch/data'
- './data/backups/elasticsearch:/data/backups/elasticsearch'
environment:
- 'discovery.type=single-node'
- 'cluster.routing.allocation.disk.watermark.enable_for_single_data_node=true'
- 'cluster.routing.allocation.disk.threshold_enabled=false'
- path.repo=/data/backups/elasticsearch
- 'ES_JAVA_OPTS=-Xms1024m -Xmx1024m'
- xpack.security.enabled=false # elasticsearch >8.x defaults to true
# - http.port=9200
# - http.cors.allow-origin=http://localhost:1358,http://127.0.0.1:1358
# - http.cors.enabled=true
# - http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
# - http.cors.allow-credentials=true
# elasticsearch browser. Uncomment during development, along with the environment variables for elastic above, to browse Elastic via a GUI at http://localhost:1358/
#dejavu:
# image: appbaseio/dejavu:3.2.3
# container_name: dejavu
# ports:
# - '1358:1358'
# links:
# - elasticsearch
minio:
ports:
- '3535:3535'
- '3536:3536'
volumes:
- './data/minio:/data'
command: server --address ":3535" --console-address ":3536" /data
influxdb:
ports:
- '8086:8086'
volumes:
- './data/influxdb:/var/lib/influxdb'
- './data/backups/influxdb:/data/backups/influxdb'
- './infrastructure/influxdb.conf:/etc/influxdb/influxdb.conf'
# Expose dev secrets as a plain volume - these will use docker secrets in staging and prod
hearth:
environment:
- logger__level=warn
volumes:
- '.secrets/public-key.pem:/secrets/public-key.pem'
- './infrastructure/hearth-plugins/checkDuplicateTask.js:/src/hearth/lib/plugins/checkDuplicateTask.js'
- './infrastructure/hearth-queryparam-extensions.json:/src/hearth/config/queryparam-extensions.json'
ports:
- '3447:3447'