Browse Source

security: add no-new-privileges to docker-compose.yml

pull/2552/head
Platon47 4 months ago
committed by GitHub
parent
commit
801b08a1cc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      docker-compose.yml

3
docker-compose.yml

@ -61,6 +61,9 @@ services:
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
- SYS_MODULE - SYS_MODULE
# Prevent privilege escalation inside the container
security_opt:
- no-new-privileges:true
sysctls: sysctls:
- net.ipv4.ip_forward=1 - net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1 - net.ipv4.conf.all.src_valid_mark=1

Loading…
Cancel
Save