-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 897 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
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3'
services:
postgres:
image: postgres:latest
env_file:
- .env
networks:
- network
# descomente se quiser acessar o banco de dados externamente
ports:
- 5432:5432
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
backend:
build:
context: ./Backend
dockerfile: Dockerfile
restart: always
env_file:
- .env
depends_on:
- postgres
ports:
- 3000:3000
networks:
- network
volumes:
- backend-data:/app/
- ssl-certs:/etc/letsencrypt/live/
nginx:
build:
context: ./Frontend
dockerfile: Dockerfile
env_file:
- .env
restart: always
depends_on:
- backend
ports:
- 80:80
- 443:443
networks:
- network
networks:
network:
volumes:
ssl-certs:
backend-data:
postgres-data: