Add more cap_drop

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-09-22 19:57:33 +02:00
parent 9700b8a379
commit b8f69ed6e2
4 changed files with 18 additions and 5 deletions

View File

@ -10,9 +10,12 @@ services:
- caddy - caddy
networks: networks:
- infra-network - infra-network
read_only: false
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
read_only: false cap_drop:
- SYS_ADMIN
deploy: deploy:
resources: resources:
limits: limits:
@ -21,6 +24,7 @@ services:
reservations: reservations:
cpus: '0.001' cpus: '0.001'
memory: 20M memory: 20M
it-tools1: it-tools1:
image: corentinth/it-tools:latest image: corentinth/it-tools:latest
container_name: it-tools1 container_name: it-tools1
@ -31,9 +35,12 @@ services:
- caddy - caddy
networks: networks:
- infra-network - infra-network
read_only: false
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
read_only: false cap_drop:
- SYS_ADMIN
deploy: deploy:
resources: resources:
limits: limits:

View File

@ -16,9 +16,11 @@ services:
- infra-network - infra-network
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
read_only: true read_only: false
tmpfs: cap_drop:
- /tmp - SYS_ADMIN
# tmpfs:
# - /tmp
deploy: deploy:
resources: resources:
limits: limits:

View File

@ -18,6 +18,8 @@ services:
- infra-network - infra-network
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop:
- SYS_ADMIN
# Database projectsend # Database projectsend
projectsend_db: projectsend_db:

View File

@ -14,6 +14,8 @@ services:
- infra-network - infra-network
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop:
- SYS_ADMIN
volumes: volumes:
uptimekuma_data: uptimekuma_data: