version: "3.9" services: design-engine: build: . ports: - "8000:8000" env_file: - .env volumes: - ./output:/app/output - ./src:/app/src # Live-reload in dev; remove in production environment: - OUTPUT_DIR=/app/output - TEMP_DIR=/app/tmp - LOG_LEVEL=INFO restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3 start_period: 15s # Optional: Ollama sidecar for local models # Uncomment to run local LLMs without external API keys # ollama: # image: ollama/ollama:latest # ports: # - "11434:11434" # volumes: # - ollama_data:/root/.ollama # environment: # - OLLAMA_KEEP_ALIVE=24h # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: all # capabilities: [gpu] # volumes: # ollama_data: