forked from FelipeNogueraP/controlCuraduria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (73 loc) · 1.44 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file: .env
environment:
- DJANGO_SETTINGS_MODULE=config.settings_dev
volumes:
- backend-volume:/app:cached
command: python manage.py runserver 0.0.0.0:8000
networks:
- app-network
ports:
- "8000:8000"
depends_on:
- db
- migrator
migrator:
build:
context: ./backend
dockerfile: Dockerfile
env_file: .env
environment:
- DJANGO_SETTINGS_MODULE=config.settings_dev
volumes:
- backend-volume:/app
command: /app/migrate_load_fixtures.sh
networks:
- app-network
depends_on:
- db
db:
image: postgres:13
env_file: .env
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- app-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- frontend-volume:/app:cached
- /app/node_modules
ports:
- "3000:3000"
networks:
- app-network
environment:
- CHOKIDAR_USEPOLLING=true
volumes:
backend-volume:
driver: local
driver_opts:
type: none
device: ./backend
o: bind
frontend-volume:
driver: local
driver_opts:
type: none
device: ./frontend
o: bind
postgres-data:
networks:
app-network:
driver: bridge