Production container runs as the owner of /mnt/NTPFiles (65534:2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Samer Salameh 2026-11-18 09:36:38 +03:00
parent 07831cff85
commit d28802994a
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,8 @@ services:
args: args:
WEB_MODE: build:prod WEB_MODE: build:prod
restart: unless-stopped restart: unless-stopped
# /mnt/NTPFiles is owned by 65534 (nobody), group 2 and only its owner may write: run as that user, not as the image's "app" (1654)
user: "65534:2"
env_file: .env env_file: .env
environment: environment:
ASPNETCORE_ENVIRONMENT: Production ASPNETCORE_ENVIRONMENT: Production