forked from opencrvs/opencrvs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev-deps.yml
More file actions
62 lines (59 loc) · 2.18 KB
/
Copy pathdocker-compose.dev-deps.yml
File metadata and controls
62 lines (59 loc) · 2.18 KB
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
# 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
postgres:
image: postgres:17.6
container_name: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./packages/migration/src/migrations/postgres/0001_init.sql:/docker-entrypoint-initdb.d/0001_init.sql
redis:
ports:
- "6379:6379"
elasticsearch:
ports:
- "9200:9200"
- "9300:9300"
volumes:
- "./data/elasticsearch:/usr/share/elasticsearch/data"
environment:
- "discovery.type=single-node"
- "cluster.routing.allocation.disk.watermark.enable_for_single_data_node=\
true"
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "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