Compare commits
No commits in common. "45a6540cc487a4b47cadbc914209b77cc4c001b5" and "802af683ac9a29356e22bcc7f103eb141637f215" have entirely different histories.
45a6540cc4
...
802af683ac
|
|
@ -1,30 +1,18 @@
|
||||||
version: "3.9"
|
version: "3.9"
|
||||||
services:
|
services:
|
||||||
tor:
|
|
||||||
image: dperson/torproxy:latest
|
|
||||||
command: -n
|
|
||||||
restart: unless-stopped
|
|
||||||
ollama:
|
|
||||||
image: ollama/ollama:latest
|
|
||||||
volumes:
|
|
||||||
- ollama:/root/.ollama
|
|
||||||
restart: unless-stopped
|
|
||||||
runner:
|
runner:
|
||||||
build:
|
image: python:3.11-slim
|
||||||
context: ..
|
command: ["/bin/sh","-lc","pip install requests pyyaml && python /app/kom_runner.py"]
|
||||||
dockerfile: docker/runner/Dockerfile
|
|
||||||
environment:
|
|
||||||
XDG_STATE_HOME: /state
|
|
||||||
XDG_CONFIG_HOME: /config
|
|
||||||
XDG_CACHE_HOME: /cache
|
|
||||||
OLLAMA_BASE_URL: http://ollama:11434
|
|
||||||
ALL_PROXY: socks5h://tor:9050
|
|
||||||
NO_PROXY: localhost,127.0.0.1,ollama
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/kompanion/.local/state/kompanion:/state
|
- /home/kompanion/.local/state/kompanion:/state
|
||||||
- /home/kompanion/.config/kompanion:/config
|
- /home/kompanion/.config/kompanion:/config:ro
|
||||||
- /home/kompanion/.cache/kompanion:/cache
|
- /home/kompanion/metal-kompanion-runtime:/app:ro
|
||||||
depends_on: [ollama, tor]
|
environment:
|
||||||
|
- XDG_STATE_HOME=/home/kompanion/.local/state
|
||||||
|
- XDG_CONFIG_HOME=/home/kompanion/.config
|
||||||
|
network_mode: "host"
|
||||||
|
restart: unless-stopped
|
||||||
|
tor:
|
||||||
|
image: dperson/torproxy
|
||||||
|
ports: ["9050:9050"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
|
||||||
ollama:
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
FROM
|
|
||||||
python:3.11-slim
|
|
||||||
RUN useradd -m -u 1000 app && mkdir -p /app
|
|
||||||
WORKDIR
|
|
||||||
/app
|
|
||||||
COPY runtime/requirements.txt /app/requirements.txt
|
|
||||||
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
||||||
COPY runtime/kom_runner.py /app/kom_runner.py
|
|
||||||
USER
|
|
||||||
app
|
|
||||||
ENV XDG_STATE_HOME=/state XDG_CONFIG_HOME=/config XDG_CACHE_HOME=/cache OLLAMA_BASE_URL=http://ollama:11434 NO_PROXY=localhost,127.0.0.1,ollama
|
|
||||||
CMD ["python", "-u", "/app/kom_runner.py"]
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Memory Plan (sqlite + FAISS)
|
|
||||||
- sqlite: embeddings.db with tables: chunks(id, file, sha, lineno, text, ts), vectors(id, dim, data BLOB)
|
|
||||||
- faiss: faiss.index for fast ANN; sqlite is source of truth
|
|
||||||
- provenance mandatory; ripgrep is canonical text source
|
|
||||||
- journal is never overwritten; only append
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
import time
|
|
||||||
while True: time.sleep(3600)
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
requests
|
|
||||||
pyyaml
|
|
||||||
Loading…
Reference in New Issue