Compare commits
No commits in common. "3ae8bebb54ce1106b4ef8672d589f01bf3a6fa39" and "1585c168fd415031ccd271feb4c21cde5f2cae5b" have entirely different histories.
3ae8bebb54
...
1585c168fd
|
|
@ -1,24 +1,24 @@
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
name: metal-kompanion-host
|
name: metal-kompanion-host
|
||||||
|
|
||||||
services:
|
services:
|
||||||
runner:
|
runner:
|
||||||
image: python:3.11-slim
|
image: python:3.11-slim
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
extra_hosts: ["host.docker.internal:host-gateway"]
|
|
||||||
environment:
|
environment:
|
||||||
XDG_STATE_HOME: /state
|
XDG_STATE_HOME: /state
|
||||||
XDG_CONFIG_HOME: /config
|
XDG_CONFIG_HOME: /config
|
||||||
XDG_CACHE_HOME: /cache
|
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
|
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:
|
volumes:
|
||||||
- /home/kompanion/.local/state/kompanion:/state/kompanion
|
- /home/kompanion/.local/state/kompanion:/state/kompanion
|
||||||
- /home/kompanion/.config/kompanion:/config/kompanion:ro
|
- /home/kompanion/.config/kompanion:/config/kompanion:ro
|
||||||
- /home/kompanion/.cache/kompanion:/cache/kompanion
|
- /home/kompanion/.cache/kompanion:/cache/kompanion
|
||||||
- /home/kompanion/metal-kompanion-runtime:/app:ro
|
- /home/kompanion/metal-kompanion-runtime:/app:ro
|
||||||
command: ["python3","kom_runner.py"]
|
command: ["python3","kom_runner.py"]
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -10,11 +10,13 @@ services:
|
||||||
image: dperson/torproxy
|
image: dperson/torproxy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: -a 0.0.0.0
|
command: -a 0.0.0.0
|
||||||
|
ports: ["127.0.0.1:9051:9051"] # optional host exposure
|
||||||
networks: [komnet, netpub]
|
networks: [komnet, netpub]
|
||||||
|
|
||||||
ollama:
|
ollama:
|
||||||
image: ollama/ollama:latest
|
image: ollama/ollama:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
ports: ["127.0.0.1:11435:11435"] # expose to host for tools if desired
|
||||||
volumes:
|
volumes:
|
||||||
- ollama:/root/.ollama # persist models once
|
- ollama:/root/.ollama # persist models once
|
||||||
- /home/kompanion/ollama-modelfiles:/modelfiles # your custom Modelfiles/LoRA
|
- /home/kompanion/ollama-modelfiles:/modelfiles # your custom Modelfiles/LoRA
|
||||||
|
|
@ -28,9 +30,9 @@ services:
|
||||||
XDG_STATE_HOME: /state
|
XDG_STATE_HOME: /state
|
||||||
XDG_CONFIG_HOME: /config
|
XDG_CONFIG_HOME: /config
|
||||||
XDG_CACHE_HOME: /cache
|
XDG_CACHE_HOME: /cache
|
||||||
ALL_PROXY: socks5h://tor:9050
|
ALL_PROXY: socks5h://tor:9051
|
||||||
NO_PROXY: ollama,localhost,127.0.0.1
|
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]
|
depends_on: [ollama, tor]
|
||||||
volumes:
|
volumes:
|
||||||
- /home/kompanion/.local/state/kompanion:/state/kompanion
|
- /home/kompanion/.local/state/kompanion:/state/kompanion
|
||||||
Loading…
Reference in New Issue