chore(docker): add host-runner compose using host ollama:11435 & tor:9051
This commit is contained in:
parent
9b9666485f
commit
1585c168fd
|
|
@ -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"
|
||||
Loading…
Reference in New Issue