Docker: run as host user (fixes permission denied in data/ on Linux)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-26 20:38:30 +02:00
co-authored by Claude Opus 5.5
parent 0d289879f4
commit 4a948128e5
5 changed files with 26 additions and 1 deletions
+3
View File
@@ -14,6 +14,9 @@ services:
server:
build: .
container_name: msco-server
# Als dein Linux-Benutzer laufen (nicht root), damit du in data/ selbst Dateien anlegen/ändern darfst.
# Andere ID? `id -u` / `id -g` ausgeben und in .env als MSCO_UID / MSCO_GID eintragen.
user: "${MSCO_UID:-1000}:${MSCO_GID:-1000}"
restart: "on-failure:3" # bei fehlendem Schlüssel/Spielstand nicht endlos neu starten
stdin_open: true # Server-Konsole per docker attach
tty: true