1
0
mirror of https://github.com/ArcticFoxes-net/Signal-TLS-Proxy synced 2024-06-25 12:47:05 -04:00
Signal-TLS-Proxy/docker-compose.yml
Tommy 708bbf0496
Drop capabilities
Signed-off-by: Tommy <contact@tommytran.io>
2022-09-11 11:03:17 -04:00

43 lines
1.0 KiB
YAML

version: '3'
services:
nginx-terminate:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./data/nginx-terminate/nginx.conf:/etc/nginx/nginx.conf:Z
- ./data/certbot/conf:/etc/letsencrypt:Z
- ./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
volumes:
- ./data/certbot/conf:/etc/letsencrypt:Z
- ./data/certbot/www:/var/www/certbot:Z
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