-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-somaliland.yml
39 lines (39 loc) · 1.09 KB
/
docker-compose-somaliland.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
version: '2.1'
services:
database:
container_name: dhis2-database
image: mdillon/postgis:9.5
environment:
POSTGRES_USER: dhis
POSTGRES_DB: dhis
POSTGRES_PASSWORD: dhis
POSTGRES_DB_TARGET: dhis-target
PG_DATA: /var/lib/postgresql/data/pgdata:z
ports:
- "5432:5432"
volumes:
- "./somaliland/db-init.sql:/docker-entrypoint-initdb.d/1-init.sql"
- "./somaliland/db-backup.sql:/docker-entrypoint-initdb.d/2-backup.sql"
- "./somaliland/db-local-setup.sql:/docker-entrypoint-initdb.d/3-local-setup.sql"
healthcheck:
test: ["CMD-SHELL", "pg_isready -h database -p 5432 -d dhis"]
interval: 30s
timeout: 30s
retries: 150
webapp:
container_name: dhis2-webapp
image: dhis2/dhis2-web:2.27-tomcat7-jre8-latest
environment:
JAVA_OPTS: "-Xmx1024m -Xms4000m"
POSTGRES_DB: dhis2
ports:
- "8085:8080"
depends_on:
database:
condition: service_healthy
volumes:
- "./somaliland/dhis.conf:/opt/dhis2/config/dhis.conf"
healthcheck:
test: "curl -f http://webapp:8080"
interval: 30s
retries: 150