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
|
||||
ports:
|
||||
- "443:443"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
cap_add:
|
||||
- CAP_NET_BIND_SERVICE
|
||||
- CHOWN
|
||||
nginx-relay:
|
||||
image: nginx:alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop:
|
||||
- ALL
|
||||
certbot:
|
||||
image: certbot/certbot
|
||||
restart: unless-stopped
|
||||
@ -24,3 +35,9 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
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