diff --git a/streaming/compose.yaml b/streaming/compose.yaml index 9f440b7..8cee696 100644 --- a/streaming/compose.yaml +++ b/streaming/compose.yaml @@ -122,9 +122,19 @@ services: container_name: lampac restart: unless-stopped shm_size: 1024mb + # Restore persisted passwd/init.conf from seed volume before start, + # so config survives container recreation (upstream entrypoint is + # ENTRYPOINT ["dotnet", "Core.dll"], WORKDIR /lampac, USER lampac). + entrypoint: + [ + "/bin/sh", + "-c", + "if [ -f /seed/passwd ] && [ ! -f /lampac/passwd ]; then cp /seed/passwd /lampac/passwd; fi; if [ -f /seed/init.conf ] && [ ! -f /lampac/init.conf ]; then cp /seed/init.conf /lampac/init.conf; fi; exec /usr/share/dotnet/dotnet Core.dll", + ] environment: - TZ=${TZ:-Europe/Berlin} volumes: + - lampac-seed:/seed - lampac-cache:/lampac/cache - lampac-db:/lampac/database ports: @@ -140,6 +150,7 @@ volumes: prowlarr-cfg: jellyseerr-cfg: bazarr-cfg: + lampac-seed: lampac-cache: lampac-db: downloads: