Drop capabilities

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-09-11 16:27:22 -04:00
parent 2e1c342549
commit aa0705dd6c
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
1 changed files with 20 additions and 0 deletions

View File

@ -26,6 +26,10 @@ services:
- postgres
networks:
- matrix
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
postgres:
image: docker.io/postgres:alpine
@ -49,6 +53,14 @@ services:
- ./element-config.json:/app/config.json:Z
networks:
- matrix
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
swag:
image: ghcr.io/linuxserver/swag
@ -83,6 +95,10 @@ services:
- synapse
networks:
- matrix
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
mjolnir:
image: matrixdotorg/mjolnir:latest
@ -94,6 +110,10 @@ services:
- pantalaimon
networks:
- matrix
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
networks:
matrix: