version: '3.8' services: app: build: . container_name: system-prompt-optimizer ports: - "8010:8010" environment: - OLLAMA_HOST=http://host.docker.internal:11434 - PYTHONUNBUFFERED=1 volumes: - ./outputs:/app/outputs restart: unless-stopped extra_hosts: - "host.docker.internal:host-gateway" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8010/health"] interval: 30s timeout: 10s retries: 3 start_period: 5s