2021-01-28 13:34:53 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx-terminate:
|
|
|
|
build: ./nginx-terminate/
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data/nginx-terminate:/etc/nginx/conf.d
|
|
|
|
- ./data/certbot/conf:/etc/letsencrypt
|
|
|
|
- ./data/certbot/www:/var/www/certbot
|
|
|
|
ports:
|
|
|
|
- "443:443"
|
|
|
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
|
2022-09-11 14:21:12 -04:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- CHOWN
|
2022-09-25 16:10:31 -04:00
|
|
|
- SETUID
|
|
|
|
- SETGID
|
2021-01-28 13:34:53 -05:00
|
|
|
nginx-relay:
|
|
|
|
build: ./nginx-relay/
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data/nginx-relay:/etc/nginx/conf.d
|
|
|
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
|
2022-09-11 14:21:12 -04:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
2022-09-25 16:10:31 -04:00
|
|
|
cap_add:
|
|
|
|
- SETUID
|
|
|
|
- SETGID
|
2021-01-28 13:34:53 -05:00
|
|
|
certbot:
|
|
|
|
image: certbot/certbot
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./data/certbot/conf:/etc/letsencrypt
|
|
|
|
- ./data/certbot/www:/var/www/certbot
|
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
2022-12-10 21:31:04 -05:00
|
|
|
security_opt:
|
2022-09-11 14:21:12 -04:00
|
|
|
- no-new-privileges:true
|