-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 843 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
version: '3.1'
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: baza
PGDATA: /data
ports:
- "5432:5432"
volumes:
- data:/data
networks:
- postgres-internal
admin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: user@user.com
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_PORT: 8080
ports:
- "8080:8080"
volumes:
- data2:/var/lib/pgadmin
networks:
- postgres-internal
networks:
postgres-internal:
external: false
volumes:
data:
driver: local
data2:
driver: local