-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 859 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 859 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- nfm_node_modules:/app/node_modules
environment:
- NODE_ENV=development
command: ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/app
- ./uploads:/app/uploads
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
environment:
- PYTHONUNBUFFERED=1
nginx:
image: nginx:latest
restart: unless-stopped
ports:
- "80:80"
- "443:443"
depends_on:
- backend
- frontend
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
volumes:
nfm_node_modules: