-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 806 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (37 loc) · 806 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
version: '3.9'
services:
postgres:
container_name: slip-postgres-container
image: postgres:17.0
restart: always
env_file:
- .docker.env
ports:
- "5432:5432"
volumes:
- ./data/postgresql:/var/lib/postgresql/data
- ./scripts/create_db.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- postgres
pgadmin:
container_name: slip-pgadmin-container
image: dpage/pgadmin4:7.1
restart: always
env_file:
- .docker.env
ports:
- "5050:80"
depends_on:
- postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
- postgres
volumes:
postgres:
driver: local
pgadmin-data:
driver: local
networks:
postgres:
driver: bridge