version: "3.9" name: metal-kompanion-host services: runner: image: python:3.11-slim restart: unless-stopped working_dir: /app environment: XDG_STATE_HOME: /state XDG_CONFIG_HOME: /config XDG_CACHE_HOME: /cache # Route egress through host TOR by default ALL_PROXY: socks5h://host.docker.internal:9051 NO_PROXY: localhost,127.0.0.1,host.docker.internal # Talk to HOST ollama on 11435 OLLAMA_BASE: http://host.docker.internal:11435 volumes: - /home/kompanion/.local/state/kompanion:/state/kompanion - /home/kompanion/.config/kompanion:/config/kompanion:ro - /home/kompanion/.cache/kompanion:/cache/kompanion - /home/kompanion/metal-kompanion-runtime:/app:ro command: ["python3","kom_runner.py"] extra_hosts: - "host.docker.internal:host-gateway"