From 1585c168fd415031ccd271feb4c21cde5f2cae5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=A7=CE=B3=CF=86=CF=84=20Kompanion?= Date: Mon, 13 Oct 2025 04:08:44 +1300 Subject: [PATCH] chore(docker): add host-runner compose using host ollama:11435 & tor:9051 --- docker/compose.host.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docker/compose.host.yml diff --git a/docker/compose.host.yml b/docker/compose.host.yml new file mode 100644 index 0000000..1f95fc4 --- /dev/null +++ b/docker/compose.host.yml @@ -0,0 +1,24 @@ +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"