-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 826 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (35 loc) · 826 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
version: "3.8"
services:
postgres_db:
image: postgres:15
container_name: postgres_db
restart: always
env_file: .env
ports:
- "${POSTGRES_PORT}:5432"
networks:
- backend_network
volumes:
- postgres_data:${POSTGRES_PGDATA}
- ./config/postgresql.conf:/var/lib/postgresql/postgresql.conf
pgadmin4:
image: dpage/pgadmin4:6
container_name: pgadmin4
restart: always
env_file: .env
environment:
- PGADMIN_DEFAULT_EMAIL=user@gmail.com
ports:
- "${PGADMIN_ADDRESS}:${PGADMIN_PORT}:80"
networks:
- backend_network
depends_on:
- postgres_db
volumes:
- pgadmin_data:/var/lib/pgadmin
- ./storage:/var/lib/pgadmin/storage/user_gmail.com
networks:
backend_network:
volumes:
postgres_data:
pgadmin_data: