2021-01-28 13:34:53 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx-terminate:
|
2022-09-06 18:40:00 -04:00
|
|
|
image: nginx:alpine
|
2021-01-28 13:34:53 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-06 18:40:00 -04:00
|
|
|
- ./data/nginx-terminate/nginx.conf:/etc/nginx/nginx.conf:Z
|
|
|
|
- ./data/certbot/conf:/etc/letsencrypt:Z
|
|
|
|
- ./data/certbot/www:/var/www/certbot:Z
|
2021-01-28 13:34:53 -05:00
|
|
|
ports:
|
|
|
|
- "443:443"
|
2022-09-22 15:40:24 -04:00
|
|
|
- "80:80"
|
2023-08-28 21:37:17 -04:00
|
|
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /usr/sbin/nginx -s reload; done & /usr/sbin/nginx -c /etc/nginx/nginx.conf -g \"daemon off;\"'"
|
2021-01-28 13:34:53 -05:00
|
|
|
nginx-relay:
|
2022-09-06 18:40:00 -04:00
|
|
|
image: nginx:alpine
|
2021-01-28 13:34:53 -05:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-06 18:40:00 -04:00
|
|
|
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
2023-08-28 21:37:17 -04:00
|
|
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /usr/sbin/nginx -s reload; done & /usr/sbin/nginx -c /etc/nginx/nginx.conf -g \"daemon off;\"'"
|
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;'"
|