mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-11 08:10:13 +00:00
add fail2ban as example container for testing purposes
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
c320da2b0e
commit
f221ab7655
6 changed files with 41 additions and 3 deletions
|
|
@ -39,7 +39,7 @@
|
|||
},
|
||||
"display_name": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z ]+$"
|
||||
"pattern": "^[A-Za-z 0-9]+$"
|
||||
},
|
||||
"environment": {
|
||||
"type": "array",
|
||||
|
|
@ -51,7 +51,7 @@
|
|||
},
|
||||
"container_name": {
|
||||
"type": "string",
|
||||
"pattern": "^nextcloud-aio-[a-z-]+$"
|
||||
"pattern": "^nextcloud-aio-[a-z-0-9]+$"
|
||||
},
|
||||
"internal_port": {
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -477,7 +477,9 @@ class DockerActionManager
|
|||
}
|
||||
|
||||
// Disable arp spoofing
|
||||
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];
|
||||
if (!in_array('NET_RAW', $capAdds, true)) {
|
||||
$requestBody['HostConfig']['CapDrop'] = ['NET_RAW'];
|
||||
}
|
||||
|
||||
if ($container->isApparmorUnconfined()) {
|
||||
$requestBody['HostConfig']['SecurityOpt'] = ["apparmor:unconfined"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue