mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Docker: run as unprivileged user, drop capabilities (S8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
92479d8a38
commit
034be9cc77
2 files changed
+10
No files matched your search
@@ -6,6 +6,10 @@ services:
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PORT=8080
|
||||
# Nothing in here needs Linux capabilities (unprivileged port, plain
|
||||
# TCP/UDP sockets), so drop them all.
|
||||
cap_drop: [ALL]
|
||||
security_opt: [no-new-privileges:true]
|
||||
# Port publishing is deployment-specific and left out of this file on
|
||||
# purpose - Compose concatenates `ports:` lists across an override file
|
||||
# instead of replacing them, so adding one here would double-publish
|
||||
|
||||
Reference in new issue
Block a user