Compare commits

..

No commits in common. "3ae8bebb54ce1106b4ef8672d589f01bf3a6fa39" and "1585c168fd415031ccd271feb4c21cde5f2cae5b" have entirely different histories.

3 changed files with 22 additions and 8 deletions

View File

@ -1,24 +1,24 @@
version: "3.9"
name: metal-kompanion-host
services:
runner:
image: python:3.11-slim
restart: unless-stopped
working_dir: /app
extra_hosts: ["host.docker.internal:host-gateway"]
environment:
XDG_STATE_HOME: /state
XDG_CONFIG_HOME: /config
XDG_CACHE_HOME: /cache
# talk to host services:
# 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
ALL_PROXY: socks5h://host.docker.internal:9050
NO_PROXY: host.docker.internal,127.0.0.1,localhost
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"

View File

@ -0,0 +1,12 @@
version: "3.9"
services:
ollama:
networks: [komnet]
volumes:
- /home/kompanion/ollama:/root/.ollama
runner:
environment:
OLLAMA_BASE_URL: http://ollama:11434
networks:
komnet:
internal: false

View File

@ -10,11 +10,13 @@ services:
image: dperson/torproxy
restart: unless-stopped
command: -a 0.0.0.0
ports: ["127.0.0.1:9051:9051"] # optional host exposure
networks: [komnet, netpub]
ollama:
image: ollama/ollama:latest
restart: unless-stopped
ports: ["127.0.0.1:11435:11435"] # expose to host for tools if desired
volumes:
- ollama:/root/.ollama # persist models once
- /home/kompanion/ollama-modelfiles:/modelfiles # your custom Modelfiles/LoRA
@ -28,9 +30,9 @@ services:
XDG_STATE_HOME: /state
XDG_CONFIG_HOME: /config
XDG_CACHE_HOME: /cache
ALL_PROXY: socks5h://tor:9050
ALL_PROXY: socks5h://tor:9051
NO_PROXY: ollama,localhost,127.0.0.1
OLLAMA_BASE: http://ollama:11434 # talk to container by DNS name
OLLAMA_BASE: http://ollama:11435 # talk to container by DNS name
depends_on: [ollama, tor]
volumes:
- /home/kompanion/.local/state/kompanion:/state/kompanion