fix: harden container privileges

This commit is contained in:
lingkai5wu committed 2026-10-16 15:11:17 +08:00
1 parent abbcdb1a02
commit 6e02bd39ae
11 files changed
+51

No files matched your search

+12
View File
@@ -20,6 +20,18 @@ services:
networks:
- proxy
restart: unless-stopped
security_opt:
- no-new-privileges:true
# Root keeps only the capabilities restic needs to read and restore
# files owned by other users.
cap_drop:
- ALL
cap_add:
- CHOWN
- DAC_OVERRIDE
- DAC_READ_SEARCH
- FOWNER
- FSETID
deploy:
resources:
limits: