-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
47 lines (43 loc) · 1.05 KB
/
docker-compose.dev.yml
File metadata and controls
47 lines (43 loc) · 1.05 KB
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: fieldops-backend-dev
restart: unless-stopped
environment:
- DATABASE_URL=sqlite:///./data/fieldops.db
- SECRET_KEY=${SECRET_KEY:-your-super-secret-key-change-in-production}
- DEBUG=true
- CORS_ORIGINS=http://localhost:5173,http://localhost:3000,http://localhost
volumes:
- ./backend:/app
- backend_data:/app/data
ports:
- "8000:8000"
command: uvicorn main:app --reload --host 0.0.0.0 --port 8000
networks:
- fieldops-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
container_name: fieldops-frontend-dev
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "5173:5173"
depends_on:
- backend
command: npm run dev -- --host 0.0.0.0
networks:
- fieldops-network
volumes:
backend_data:
driver: local
networks:
fieldops-network:
driver: bridge