mirror of
https://github.com/ArcticFoxes-net/Signal-TLS-Proxy
synced 2024-12-22 00:21:32 -05:00
Drop capabilities
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
2c2c3b4003
commit
708bbf0496
@ -10,11 +10,22 @@ services:
|
|||||||
- ./data/certbot/www:/var/www/certbot:Z
|
- ./data/certbot/www:/var/www/certbot:Z
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
cap_add:
|
||||||
|
- CAP_NET_BIND_SERVICE
|
||||||
|
- CHOWN
|
||||||
nginx-relay:
|
nginx-relay:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -23,4 +34,10 @@ services:
|
|||||||
- ./data/certbot/www:/var/www/certbot:Z
|
- ./data/certbot/www:/var/www/certbot:Z
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
cap_add:
|
||||||
|
- CAP_NET_BIND_SERVICE
|
Loading…
Reference in New Issue
Block a user