-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
80 lines (70 loc) · 1.77 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
80 lines (70 loc) · 1.77 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
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
services:
# Development services with hot reloading
backend-dev:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./backend:/app
- backend_uploads:/app/uploads
- backend_outputs:/app/outputs
- backend_data:/app/data
- /app/__pycache__ # Exclude pycache
environment:
- PYTHONPATH=/app
- ENVIRONMENT=${ENVIRONMENT:-development}
- DEBUG=${DEBUG:-true}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- LLM_PRODUCT_ID=${LLM_PRODUCT_ID}
- LLM_API_TOKEN=${LLM_API_TOKEN}
- LLM_MODEL=${LLM_MODEL:-mistral3}
- LLM_TIMEOUT=${LLM_TIMEOUT:-60}
depends_on:
- redis
networks:
- marker-network
# Use uvicorn for dev (with reload), Hypercorn for production (HTTP/2)
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
frontend-dev:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules # Exclude node_modules
environment:
- REACT_APP_API_URL=http://localhost:8000
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true # For file watching in Docker
depends_on:
- backend-dev
networks:
- marker-network
command: npm run dev -- --host 0.0.0.0
# Shared services
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- marker-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
marker-network:
driver: bridge
volumes:
redis_data:
backend_uploads:
backend_outputs:
backend_data: