-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
49 lines (46 loc) · 954 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
app:
container_name: idr-app
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- ENV_FILE=.env
volumes:
- ./.env:/root/.env
networks:
- idr-network
depends_on:
- postgres
extra_hosts:
- "cloud.kenyahmis.org:192.168.1.45"
restart: unless-stopped
postgres:
container_name: idr-postgres
image: postgres:latest
env_file:
- .env-postgres
environment:
POSTGRES_USER: idr
POSTGRES_DB: idr
ports:
- "5555:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
networks:
- idr-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U idr"]
interval: 30s
timeout: 10s
retries: 5
networks:
idr-network:
name: idr-network
driver: bridge
volumes:
postgres-data: