-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.26 KB
/
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
version: "3"
services:
espetaria-postgre:
image: postgres:12
container_name: "ESPETARIA-POSTGRE"
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=docker123
ports:
- 5432:5432
volumes:
- volume-potgre-espetaria:/var/lib/postgresql:rw
- volume-postgre-data-espetaria:/var/lib/postgresql/data:rw
networks:
- network-postgres-espetaria
espetaria-pgadmin:
image: dpage/pgadmin4:4.16
container_name: "ESPETARIA-PGADMIN"
environment:
PGADMIN_DEFAULT_EMAIL: "admin"
PGADMIN_DEFAULT_PASSWORD: "admin"
volumes:
- volume-pgadmin-espetaria:/pgadmin4:rw
- volume-pgadmin-espetaria-lib:/var/lib/pgadmin:rw
- volume-pgadmin-espetaria-certs:/certs:rw
ports:
- 80:80
depends_on:
- espetaria-postgre
networks:
- network-postgres-espetaria
networks:
network-postgres-espetaria:
driver: bridge
volumes:
volume-potgre-espetaria:
volume-postgre-data-espetaria:
volume-pgadmin-espetaria:
volume-pgadmin-espetaria-lib:
volume-pgadmin-espetaria-certs: