-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
97 lines (92 loc) · 1.91 KB
/
docker-compose.dev.yml
File metadata and controls
97 lines (92 loc) · 1.91 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
services:
# Backend API with hot reload
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "8000:8000"
env_file:
- ./backend/.env
volumes:
- ./backend:/app
- /app/.venv
environment:
- ENV_MODE=development
- REDIS_URL=redis://redis:6379
- PYTHONUNBUFFERED=1
depends_on:
redis:
condition: service_healthy
networks:
- dev-network
dns:
- 8.8.8.8
- 8.8.4.4
# Dramatiq worker for background tasks
worker:
build:
context: ./backend
dockerfile: Dockerfile.dev
command: uv run dramatiq --skip-logging --processes 1 --threads 2 run_agent_background
env_file:
- ./backend/.env
volumes:
- ./backend:/app
- /app/.venv
environment:
- ENV_MODE=development
- REDIS_URL=redis://redis:6379
- PYTHONUNBUFFERED=1
depends_on:
redis:
condition: service_healthy
networks:
- dev-network
dns:
- 8.8.8.8
- 8.8.4.4
restart: unless-stopped
# Frontend with hot reload
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: development
ports:
- "3000:3000"
env_file:
- ./frontend/.env
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
- WATCHPACK_POLLING=true
networks:
- dev-network
dns:
- 8.8.8.8
- 8.8.4.4
# Redis
redis:
image: redis:8-alpine
ports:
- "127.0.0.1:6380:6379"
volumes:
- redis_data:/data
networks:
- dev-network
command: redis-server --appendonly yes --bind 0.0.0.0 --protected-mode no
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
networks:
dev-network:
driver: bridge
volumes:
redis_data: