x-env: &env PHYSCOM_DB: /app/data/physcom.db LLM_PROVIDER: ${LLM_PROVIDER:-} GEMINI_API_KEY: ${GEMINI_API_KEY:-} GEMINI_MODEL: ${GEMINI_MODEL:-gemini-2.0-flash} OLLAMA_MODEL: ${OLLAMA_MODEL:-qwen2.5:7b} # Ollama running on the host machine, not in this container. OLLAMA_HOST: ${OLLAMA_HOST:-http://host.docker.internal:11434} services: web: build: . ports: - "5000:5000" volumes: - physcom-data:/app/data environment: <<: *env FLASK_SECRET_KEY: ${FLASK_SECRET_KEY:-} # Visitors are read-only; log in at /login with this token to edit or run. PHYSCOM_ADMIN_TOKEN: ${PHYSCOM_ADMIN_TOKEN:-} PHYSCOM_SECURE_COOKIES: ${PHYSCOM_SECURE_COOKIES:-0} extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped cli: build: . volumes: - physcom-data:/app/data environment: *env extra_hosts: - "host.docker.internal:host-gateway" entrypoint: ["physcom"] profiles: [cli] volumes: physcom-data: