Browse Source
security: add no-new-privileges to docker-compose.yml
pull/2552/head
Platon47
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
13 additions and
10 deletions
-
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 |
|
|
|