version: '3.8' services: web: build: . container_name: quantbench-executor ports: - "8000:8000" volumes: - ./db.sqlite3:/app/db.sqlite3 - ./staticfiles:/app/staticfiles environment: - DJANGO_ENV=production - PYTHONUNBUFFERED=1 restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/strategies/"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Development 모드 (선택사항) web-dev: build: . container_name: quantbench-executor-dev ports: - "8001:8000" volumes: - .:/app - /app/.venv environment: - DJANGO_ENV=development - PYTHONUNBUFFERED=1 command: python manage.py runserver 0.0.0.0:8000 restart: unless-stopped profiles: - dev