-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.02 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
46
47
48
49
50
51
52
53
version: '3.9'
services:
facturion_database:
build:
context: ./database
dockerfile: Dockerfile
env_file:
- ./database/.env
container_name: facturion_db
ports:
- 5432:5432
networks:
- bst_network
volumes:
- ./database/volume:/var/lib/postgresql/data:rw
facturion_backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- ./backend/.env
container_name: facturion_backend
expose:
- 8000
ports:
- 8000:8000
networks:
- bst_network
depends_on:
- facturion_database
links:
- facturion_database:facturion_database
facturion_frontend:
build:
context: ./frontend
dockerfile: Dockerfile
env_file:
- ./frontend/.env
container_name: facturion_frontend
restart: always
expose:
- "80" # 3000
depends_on:
- facturion_backend
ports:
- "80:3000" # 3000:3000
networks:
- bst_network
networks:
bst_network:
driver: bridge