-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 899 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
version: '3.1'
services:
postgresdb:
image: postgres:alpine
container_name: postgres_container
volumes:
- psql:/var/lib/postgresql/data
restart: always
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: postgres
networks:
- network-postgres
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata:z
depends_on: postgresdb
volumes:
- ./pgadmin:/root/.pgadmin
restart: always
ports:
- "5433:80"
depends_on:
- postgresdb
networks:
- network-postgres
volumes:
psql:
networks:
network-postgres:
name: network-postgres
driver: bridge
#docker-compose down --remove-orphans
#docker-compose up --build