chore: add docker compose scaffold (runner + tor)

This commit is contained in:
kompanion 2025-10-13 00:04:23 +13:00
commit ed2609c100
1 changed files with 18 additions and 0 deletions

18
docker/compose.yml Normal file
View File

@ -0,0 +1,18 @@
version: "3.9"
services:
runner:
image: python:3.11-slim
command: ["/bin/sh","-lc","pip install requests pyyaml && python /app/kom_runner.py"]
volumes:
- /home/kompanion/.local/state/kompanion:/state
- /home/kompanion/.config/kompanion:/config:ro
- /home/kompanion/metal-kompanion-runtime:/app:ro
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