-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (37 loc) · 866 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (37 loc) · 866 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
services:
db:
image: postgres:16-alpine
container_name: coldflow-postgres
restart: unless-stopped
environment:
POSTGRES_USER: coldflow
POSTGRES_PASSWORD: coldflow
POSTGRES_DB: coldflow
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U coldflow -d coldflow"]
interval: 5s
timeout: 3s
retries: 10
networks:
- coldflow-network
pg-admin:
# ref: https://hub.docker.com/r/dpage/pgadmin4/tags
image: dpage/pgadmin4:latest
container_name: pg-admin
restart: always
ports:
- 8081:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
networks:
- coldflow-network
volumes:
pgdata:
networks:
coldflow-network:
external: false