Compare commits

..

No commits in common. "efcadefc1948175d597de9863a0e199b5c8a021d" and "45a6540cc487a4b47cadbc914209b77cc4c001b5" have entirely different histories.

4 changed files with 14 additions and 43 deletions

View File

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
cd /home/kompanion/metal-kompanion
[ -d .git ] || git init
git config user.name Χγφτ

View File

@ -1 +0,0 @@
# reserved for future per-env overrides

View File

@ -1,48 +1,30 @@
version: "3.9" version: "3.9"
name: metal-kompanion
networks:
komnet:
driver: bridge
internal: true
services: services:
# Local model host tor:
image: dperson/torproxy:latest
command: -n
restart: unless-stopped
ollama: ollama:
image: ollama/ollama:latest image: ollama/ollama:latest
restart: unless-stopped
ports: ["127.0.0.1:11434:11434"]
volumes: volumes:
- ollama:/root/.ollama - ollama:/root/.ollama
networks: [komnet]
# TOR proxy (SOCKS5)
tor:
image: dperson/torproxy
restart: unless-stopped restart: unless-stopped
command: -a 0.0.0.0
ports: ["127.0.0.1:9050:9050"]
networks: [komnet]
# Companion runner (Python) — reads tasks.jsonl, writes journal/ledger
runner: runner:
image: python:3.11-slim build:
restart: unless-stopped context: ..
working_dir: /app dockerfile: docker/runner/Dockerfile
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
# Route all egress through TOR by default (except localhost) OLLAMA_BASE_URL: http://ollama:11434
ALL_PROXY: socks5h://tor:9050 ALL_PROXY: socks5h://tor:9050
NO_PROXY: 127.0.0.1,localhost NO_PROXY: localhost,127.0.0.1,ollama
depends_on: [ollama, tor]
volumes: volumes:
- /home/kompanion/.local/state/kompanion:/state/kompanion - /home/kompanion/.local/state/kompanion:/state
- /home/kompanion/.config/kompanion:/config/kompanion:ro - /home/kompanion/.config/kompanion:/config
- /home/kompanion/.cache/kompanion:/cache/kompanion - /home/kompanion/.cache/kompanion:/cache
- /home/kompanion/metal-kompanion-runtime:/app:ro depends_on: [ollama, tor]
command: ["python3","kom_runner.py"] restart: unless-stopped
networks: [komnet]
volumes: volumes:
ollama: ollama:

View File

@ -1,5 +0,0 @@
# Data Overview
18M /mnt/devenv/src/Human/elope
420M /mnt/devenv/src/Human/openai-export
287G /mnt/devenv/src/Human/unsorted