Files
shinkan-jinkendo/docker-compose.llm-node.yml
LarsandClaude Opus 5.5 36d51d4c33
Deploy Development / deploy (push) Successful in 55s
Test Suite / pytest-backend (push) Successful in 51s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m46s
Deploy production to llm-node alongside the Pi.
A separate workflow on the linux_host runner deploys main to llm-node with its own checkout, /etc/shinkan/prod.env and a compose override that mounts the NAS media without creating host paths. Media retention stays off there until it is explicitly enabled, because both installations share the media pool. The deploy only passes when /api/health/ready reports a ready database and complete schema. The Pi workflow keeps its name and label and now aborts on any other host.

Also documents both deployments and the recovery contract with the backup orchestrator.

version: 0.8.246 (backend)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:47:38 +01:00

33 lines
1.1 KiB
YAML

# Ergänzung zu docker-compose.yml für das Prod-Deployment auf llm-node.
# Nur zusammen mit der Basisdatei verwenden:
# docker compose -p shinkan-prod -f docker-compose.yml -f docker-compose.llm-node.yml \
# --env-file /etc/shinkan/prod.env ...
# Pi und Dev nutzen diese Datei nicht.
services:
backend:
environment:
MEDIA_ROOT: /app/media
# Ersetzt den Medien-Mount der Basisdatei (gleiches Ziel /app/media).
# Kein create_host_path: fehlt das NFS-Verzeichnis, startet der Container nicht,
# statt auf die lokale Platte zu schreiben.
volumes:
- type: bind
source: /srv/shinkan/prod/media
target: /app/media
bind:
create_host_path: false
# Pi und llm-node teilen den Medienbestand, haben aber getrennte Datenbanken.
# Die Bereinigung startet hier nur mit Profil media-retention (siehe PROD_DEPLOYMENTS.md).
retention-cron:
profiles: ["media-retention"]
environment:
MEDIA_ROOT: /app/media
volumes:
- type: bind
source: /srv/shinkan/prod/media
target: /app/media
bind:
create_host_path: false