-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (35 loc) · 815 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:5000/api
depends_on:
- backend
command: npm run dev
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./backend:/app
- /app/node_modules
- ./database:/app/database
- ./backend/src/uploads:/app/src/uploads
environment:
- NODE_ENV=development
- PORT=5000
- JWT_SECRET=your-super-secret-jwt-key-change-in-production
- DB_PATH=/app/database/restaurant.sqlite
command: npm run dev
volumes:
node_modules_frontend:
node_modules_backend: