-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1003 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 1003 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '2.1'
services:
backend-api:
container_name: backend-api
image: backend-api:DEV
ports:
- "5050:5050"
depends_on:
postgres-db:
condition: service_healthy
networks:
- localnet
restart: unless-stopped
postgres-db:
container_name: postgres-db
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- $DATA_DIR/pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- localnet
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
postgres-admin:
container_name: postgres-admin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin@postgres.in
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5433:80"
networks:
- localnet
restart: unless-stopped
networks:
localnet:
driver: bridge