-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yaml
41 lines (37 loc) · 1.05 KB
/
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
version: "3.5"
services:
wf_postgres_service:
container_name: wf_postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-wf_website}
PGDATA: /data/postgres
volumes:
- wf_postgres_volume:/data/postgres
ports:
- "5432:5432"
networks:
- wf_network
wf_pgadmin_service:
container_name: wf_pgadmin_container
image: dpage/pgadmin4:latest
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: "False"
PGADMIN_LISTEN_PORT: ${PGADMIN_PORT:-5050}
volumes:
- wf_pgadmin_volume:/var/lib/pgadmin
- ${PWD}/pgadmin_dev_servers.json:/pgadmin4/servers.json
ports:
- "${PGADMIN_PORT:-5050}:5050"
networks:
- wf_network
networks:
wf_network:
driver: bridge
volumes:
wf_postgres_volume:
wf_pgadmin_volume: