Browse Source

docker-compose & ansible-playbook: drop capabilities

Fabian Peter Hammerle 3 years ago
parent
commit
508bed3889
3 changed files with 5 additions and 0 deletions
  1. 2 0
      CHANGELOG.md
  2. 2 0
      ansible-playbook.yml
  3. 1 0
      docker-compose.yml

+ 2 - 0
CHANGELOG.md

@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+### Fixed
+- docker-compose & ansible-playbook: drop capabilities
 
 ## [1.1.0] - 2020-10-01
 ### Added

+ 2 - 0
ansible-playbook.yml

@@ -11,5 +11,7 @@
         VIRTUAL_PORT: 80
         TARGET: 1.2.3.4:8080
       volumes: ['onion_service_key:/onion-service']
+      cap_drop: [ALL]
+      security_opts: [no-new-privileges]
       memory: 128M
       restart_policy: unless-stopped

+ 1 - 0
docker-compose.yml

@@ -12,6 +12,7 @@ services:
     environment:
       VIRTUAL_PORT: 80
       TARGET: 1.2.3.4:8080
+    cap_drop: [ALL]
     security_opt: [no-new-privileges]
     cpus: 0.5
     mem_limit: 128m