-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 887 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 887 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
networks:
demo:
driver: bridge
services:
postgres:
image: postgres:18.3
container_name: postgres
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: demo
POSTGRES_USER: demouser
POSTGRES_PASSWORD: a123456789
volumes:
- ./database.sql:/docker-entrypoint-initdb.d/initdb.sql
networks:
- demo
healthcheck:
test: ["CMD", "pg_isready", "-d", "demo", "-U", "demouser"]
interval: 15s
timeout: 30s
retries: 5
pgadmin:
image: dpage/pgadmin4:9.13.0
container_name: pgadmin
restart: always
ports:
- 8080:80
environment:
PGADMIN_DEFAULT_EMAIL: test@test.com
PGADMIN_DEFAULT_PASSWORD: a123456789
volumes:
- ./servers.json:/pgadmin4/servers.json
networks:
- demo
depends_on:
postgres:
condition: service_healthy