services: api: build: . ports: - "8675:8080" environment: - DATABASE_URL=sqlite+aiosqlite:///./ai.db volumes: - ./data:/app/data - ./config.yaml:/app/config.yaml:ro depends_on: - ollama restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 ollama: image: ollama/ollama:latest volumes: - ./ollama:/root/.ollama restart: unless-stopped command: serve healthcheck: test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"] interval: 30s timeout: 10s retries: 3