-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
63 lines (60 loc) · 1.68 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
version: "3.7"
services:
db:
container_name: ${PROJECT_NAME:-openimis}-db
image: ghcr.io/openimis/openimis-pgsql:${DB_TAG:-develop}
environment:
- POSTGRES_PASSWORD=$PSQL_DB_PASSWORD
- POSTGRES_DB=$PSQL_DB_NAME
- POSTGRES_USER=$PSQL_DB_USER
healthcheck:
test: ['CMD', 'pg_isready', '-U', "$PSQL_DB_USER", '-d', "test_imis"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- database:/var/lib/postgresql/data
restart: always
ports:
- 5432:5432
db-mssql:
container_name: ${PROJECT_NAME:-openimis}-mssql
image: ghcr.io/openimis/openimis-mssql:${DB_TAG:-develop}
restart: always
user: root
environment:
- DB_PASSWORD=$MSSQL_DB_PASSWORD
- SA_PASSWORD=$MSSQL_DB_PASSWORD
- DB_NAME=$MSSQL_DB_NAME
- DB_USER=$MSSQL_DB_USER
- ACCEPT_EULA=Y
- INIT_MODE=demo
healthcheck:
test: "bash /app/healthcheck.sh"
interval: 10s
timeout: 5s
retries: 5
start_period: 100s
volumes:
- database-mssql:/var/opt/mssql/data
ports:
- 1433:1433
opensearch:
image: opensearchproject/opensearch:latest
env_file:
- ".env.openSearch"
environment:
- "discovery.type=single-node"
- "cluster.name=${CLUSTER_NAME:-my_opensearch_local}"
- "http.port=${OPEN_SEARCH_HTTP_PORT:-9200}"
- "plugins.security.ssl.http.enabled=${SLL_HTTP_ENABLED:-false}"
- "plugins.security.disabled=true"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD}"
volumes:
- "opensearch-data1:/usr/share/opensearch/data"
networks:
openimis-net:
volumes:
database:
database-mssql: