-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
107 lines (99 loc) · 2.43 KB
/
docker-compose.dev.yml
File metadata and controls
107 lines (99 loc) · 2.43 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
98
99
100
101
102
103
104
105
106
107
# Docker Compose override for local development
# Usage: docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
services:
# Development API server with hot reload
api:
build:
target: development
environment:
- API_WORKERS=1
- LOG_LEVEL=DEBUG
- ENVIRONMENT=development
volumes:
# Mount source code for hot reload
- ./api:/app/api:ro
- ./workers:/app/workers:ro
- ./generators:/app/generators:ro
# Development configuration
- ./api_config.dev.yaml:/app/api_config.yaml:ro
ports:
- "8000:8000"
- "8443:8443/udp"
command: >
hypercorn api:app
--bind 0.0.0.0:8000
--quic-bind 0.0.0.0:8443
--reload
--access-logfile -
--error-logfile -
profiles:
- dev
# Development worker with hot reload
worker:
build:
target: development
environment:
- LOG_LEVEL=DEBUG
- ENVIRONMENT=development
- WORKER_CONCURRENCY=1
volumes:
# Mount source code for hot reload
- ./api:/app/api:ro
- ./workers:/app/workers:ro
- ./generators:/app/generators:ro
# Development configuration
- ./api_config.dev.yaml:/app/api_config.yaml:ro
deploy:
replicas: 1
profiles:
- dev
# Disable Nginx proxy in development (direct API access)
nginx:
profiles:
- nginx-dev # Only start with explicit profile
# Redis with development settings
redis:
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD= # No password in development
# Redis Commander for debugging
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
redis:
condition: service_healthy
networks:
- api-network
profiles:
- debug
# Development file server for local artifacts
file-server:
image: nginx:alpine
ports:
- "8082:80"
volumes:
- ./output:/usr/share/nginx/html:ro
profiles:
- debug
# Optional: Local MinIO for S3-compatible storage testing
minio:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- minio-data:/data
command: server /data --console-address ":9001"
profiles:
- minio
volumes:
minio-data:
driver: local