-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
45 lines (41 loc) · 951 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
45 lines (41 loc) · 951 Bytes
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
command: npm run dev
ports:
- 5173:5173
volumes:
- ./frontend:/usr/src/app
- node_modules:/usr/src/app/node_modules
depends_on:
- backend
container_name: frontend
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
command: flask run --host=0.0.0.0
ports:
- 5000:5000
environment:
- FLASK_APP=flasktracker.run
- FLASK_ENV=development
- FLASK_DEBUG=1
volumes:
- ./backend:/usr/src/app
- backend_venv:/usr/local/lib/python3.12/site-packages
container_name: backend
nginx:
image: nginx:1.19-alpine
ports:
- 80:80
volumes:
- ./nginx/dev.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend
volumes:
node_modules:
backend_venv: