-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (51 loc) · 1.18 KB
/
docker-compose.yaml
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
46
47
48
49
50
51
52
53
54
55
version: '3'
services:
app:
build: .
container_name: app
command: ./.docker/entrypoint.sh
tty: true
volumes:
# /etc/localtime para sincronizar o horário do container com o horário do host
- /etc/localtime:/etc/localtime:ro
- .:/home/python/app
- ./logs:/logs
ports:
- 8000:8000
depends_on:
- db
networks:
- placework-network
db:
build: .docker/postgres
container_name: db
tty: true
volumes:
# /etc/localtime para sincronizar o horário do container com o horário do host
- /etc/localtime:/etc/localtime:ro
- .docker/postgres/pgdata:/var/lib/postgresql/data
environment:
- LC_ALL=pt_BR.UTF-8
- POSTGRES_DB=placework
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
ports:
- "5432:5432"
networks:
- placework-network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
tty: true
environment:
- PGADMIN_DEFAULT_PASSWORD=123456
ports:
- "5050:80"
depends_on:
- db
networks:
- placework-network
networks:
placework-network:
driver: bridge