Secure capabilities

This commit is contained in:
Sam A. 2024-02-10 15:39:35 +01:00
parent 5390c9c7a2
commit 57adc3efbd
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
2 changed files with 8 additions and 12 deletions

View File

@ -19,10 +19,9 @@ services:
- "./data/caddy-config:/config:rw"
- "./data/caddy-data:/data:rw"
cap_add:
- net_bind_service
- dac_override
- NET_BIND_SERVICE
cap_drop:
- all
- ALL
networks:
{{ apps_shared_docker_network }}:

View File

@ -11,11 +11,10 @@ services:
volumes:
- "./data/redis:/data:rw"
cap_add:
- dac_override
- setuid
- setgid
- SETUID
- SETGID
cap_drop:
- all
- ALL
app:
image: searxng/searxng:{{ apps_vars.searxng.version }}
@ -30,12 +29,10 @@ services:
volumes:
- "./data/settings.yml:/etc/searxng/settings.yml:ro"
cap_add:
- chown
- dac_override
- setuid
- setgid
- SETUID
- SETGID
cap_drop:
- all
- ALL
depends_on:
- redis