-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
87 lines (81 loc) · 2.12 KB
/
docker-compose.dev.yml
File metadata and controls
87 lines (81 loc) · 2.12 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
# Development Docker Compose configuration for FBA-Bench
# - Optimized for rapid development with hot-reload
# - Uses Poetry for dependency management
# - SQLite for simplicity in development
# - All debugging and development features enabled
version: "3.9"
services:
redis:
image: redis:7-alpine
container_name: fba-redis-dev
command: ["redis-server", "--appendonly", "yes"]
ports:
- "6379:6379"
volumes:
- redis_dev_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 30
restart: unless-stopped
networks:
- backend
api:
build:
context: .
dockerfile: Dockerfile.api
container_name: fba-api-dev
working_dir: /app
ports:
- "8000:8000"
environment:
# Development-specific settings
ENVIRONMENT: "development"
DEBUG: "true"
AUTH_ENABLED: "false"
AUTH_TEST_BYPASS: "true"
FBA_CORS_ALLOW_ORIGINS: "*"
DATABASE_URL: "sqlite+aiosqlite:///./dev.db"
FBA_BENCH_REDIS_URL: "redis://redis:6379/0"
PYTHONPATH: "/app/src"
LOG_LEVEL: "DEBUG"
API_RATE_LIMIT: "1000/minute" # Relaxed for development
# Enable reload for development
UVICORN_RELOAD: "true"
volumes:
- ./src:/app/src
- ./tests:/app/tests
- dev_data:/data
command: >
sh -c "poetry install --no-interaction --no-ansi &&
poetry run uvicorn api_server:app --host 0.0.0.0 --port 8000 --reload"
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
networks:
- backend
deploy:
resources:
limits:
cpus: "1.0"
memory: 1G
reservations:
cpus: "0.50"
memory: 512M
# Note: Frontend GUI is now a Godot 4 application (see godot_gui/)
# Run with: python launch_godot_gui.py
volumes:
redis_dev_data:
driver: local
dev_data:
driver: local
networks:
backend:
driver: bridge