-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (46 loc) · 988 Bytes
/
docker-compose.yml
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
50
51
52
version: '3.5'
services:
#database only yet
postgres:
image: postgres
# healthcheck:
# test: ["CMD", "pg_isready"]
# interval: 5s
# timeout: 30s
# retries: 3
# start_period: 5s
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: /data/postgres
networks:
- postgres
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- postgres:/data/postgres
pgadmin:
image: dpage/pgadmin4
env_file:
- .env
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGADMIN_CONFIG_SERVER_MODE: 'False'
logging:
driver: "none"
networks:
- postgres
ports:
- "${PGADMIN_PORT}:80"
restart: unless-stopped
volumes:
- pgadmin:/var/lib/pgadmin
networks:
postgres:
volumes:
pgadmin:
postgres: