Skip to content

Commit 162d18c

Browse files
fix: Add SETGID/SETUID capabilities to backend service in production profile
The purple-mcp-streamable-http service needs these capabilities to run Python with user/group switching. This fixes the 502 Bad Gateway error when nginx tries to proxy to the backend service.
1 parent cd4b199 commit 162d18c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ services:
5959
- no-new-privileges:true
6060
cap_drop:
6161
- ALL
62+
cap_add:
63+
- SETGID # Python and child processes need to setgid
64+
- SETUID # Python and child processes need to setuid
6265
healthcheck:
6366
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/health"]
6467
interval: 30s

0 commit comments

Comments
 (0)