rewrite: TS monorepo — pi SDK stateless agents, Postgres+pg-boss, SvelteKit themed UI; legacy moved to legacy/

This commit is contained in:
ai-chess
2026-10-18 15:32:39 +03:00
parent e23a07f07b
commit 5be4bd1da4
321 changed files with 37840 additions and 158 deletions
+33
View File
@@ -0,0 +1,33 @@
services:
chessai:
build: .
image: chessai:latest
container_name: chessai
restart: unless-stopped
environment:
AI_CHESS_HOST: "0.0.0.0" # listen on all interfaces inside the container
AI_CHESS_PORT: "7833"
# claude-code auth — talks to user's machka gateway, no Anthropic
# subscription needed at runtime.
ANTHROPIC_BASE_URL: "${ANTHROPIC_BASE_URL:-https://claude.machka.dev}"
ANTHROPIC_AUTH_TOKEN: "${ANTHROPIC_AUTH_TOKEN}"
networks:
default:
caddy-network:
aliases:
- chessai
volumes:
# Persistent runtime data — survives container rebuilds.
- ./games:/app/games
- ./logs:/app/logs
- ./config:/app/config
# codex config + auth lives in /opt/chessai/secrets/codex on the host
# and is mapped into the container's $CODEX_HOME (= ~/.codex by default).
# codex writes its own session/history/logs inside ~/.codex, so the
# mount has to be rw — the auth.json itself is never rewritten.
- ./secrets/codex:/home/chess/.codex
networks:
caddy-network:
external: true
name: caddy-network