-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 793 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (30 loc) · 793 Bytes
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
version: '2'
services:
database:
container_name: dhis2-database
image: nalinim/dhis2-db:latest
environment:
POSTGRES_USER: dhis
POSTGRES_DB: dhis
POSTGRES_PASSWORD: dhis
PG_DATA: /var/lib/postgresql/data/pgdata
ports:
- "5342:5432"
web:
container_name: dhis2-web
image: nalinim/dhis2-web:2.25-tomcat7-jre8-20161221
environment:
JAVA_OPTS: "-Xmx1024m -Xms4000m"
POSTGRES_DB: dhis
ports:
- "8085:8080"
depends_on:
- database
entrypoint: ./wait-for-it.sh -t 0 database:5432 --
command: catalina.sh run # https://github.com/docker/compose/issues/3140
test:
container_name: dhis2-test
image: nalinim/apitests
depends_on:
- web
entrypoint: ./wait-for-it.sh -t 0 web:8080 --