-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
88 lines (85 loc) · 2.16 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
88 lines (85 loc) · 2.16 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
services:
# Redis for inter-process communication
redis:
image: redis:7-alpine
container_name: ambuda-redis-dev
command: redis-server --port 6379
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
# Main web server with hot-reloading
web:
build:
context: .
dockerfile: Dockerfile.dev
container_name: ambuda-web-dev
command: /app/scripts/dev-entrypoint.sh
volumes:
# Source code
- ./ambuda:/app/ambuda
- ./config.py:/app/config.py
- ./cli.py:/app/cli.py
- ./wsgi.py:/app/wsgi.py
- ./alembic.ini:/app/alembic.ini
- ./migrations:/app/migrations
- ./scripts:/app/scripts
- ./tests:/app/tests
- ./test:/app/test
# Dependency configs
- ./pyproject.toml:/app/pyproject.toml
- ./uv.lock:/app/uv.lock
- ./tailwind.config.js:/app/tailwind.config.js
# Data
- ./data:/app/data
# Shared tmp for file handoff between web and celery
- shared-tmp:/tmp
# Mount node_modules as volume for performance
- node_modules:/app/node_modules
ports:
- "5000:5000"
env_file:
- .env.docker
- .env.docker.local
depends_on:
redis:
condition: service_healthy
stdin_open: true
tty: true
# Celery worker for background tasks
celery:
build:
context: .
dockerfile: Dockerfile.dev
container_name: ambuda-celery-dev
command: /app/scripts/start_celery.sh
volumes:
# Mount source code for hot reloading
- ./ambuda:/app/ambuda
- ./config.py:/app/config.py
- ./cli.py:/app/cli.py
- ./scripts:/app/scripts
# Dependency configs
- ./pyproject.toml:/app/pyproject.toml
- ./uv.lock:/app/uv.lock
# Data
- ./data:/app/data
# Shared tmp for file handoff between web and celery
- shared-tmp:/tmp
env_file:
- .env.docker
- .env.docker.local
depends_on:
redis:
condition: service_healthy
stdin_open: true
tty: true
volumes:
redis-data:
node_modules:
shared-tmp: