Run as PUID:PGID with a configurable umask

The image now starts through docker-entrypoint.sh: as root it hands
/data and the backup folder to PUID:PGID (only files owned by someone
else, so restarts stay fast), applies UMASK, and runs Canon as that
user with su-exec. Started with --user, it runs Canon directly. The
image defaults to 1000:1000; the Compose file presets Unraid's 99:100.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cdnutterandClaude Opus 5.5 committed 2026-10-08 14:02:43 -07:00
1 parent c8afcdab3d
commit ec0b053eb3
6 files changed
+58 -6

No files matched your search

+5
View File
@@ -28,6 +28,11 @@ services:
- ${CANON_BACKUP_PATH:-canon-backups}:/backups
environment:
CANON_BACKUP_DIR: /backups
# Who owns the files Canon writes. 99:100 is Unraid's nobody:users;
# use 1000:1000 (or your own `id -u`:`id -g`) elsewhere.
PUID: ${PUID:-99}
PGID: ${PGID:-100}
UMASK: ${UMASK:-022}
env_file:
- path: .env
required: false