2021-01-28 13:34:53 -05:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx-terminate:
|
|
|
|
build: ./nginx-terminate/
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-06 18:41:06 -04:00
|
|
|
- ./data/nginx-terminate:/etc/nginx/conf.d:Z
|
2023-08-15 20:39:01 -04:00
|
|
|
- ./data/certbot/conf:/etc/letsencrypt:z
|
|
|
|
- ./data/certbot/www:/var/www/certbot:z
|
2021-01-28 13:34:53 -05:00
|
|
|
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;\"'"
|
|
|
|
nginx-relay:
|
|
|
|
build: ./nginx-relay/
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2022-09-06 18:41:06 -04:00
|
|
|
- ./data/nginx-relay:/etc/nginx/conf.d:Z
|
2021-01-28 13:34:53 -05:00
|
|
|
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;\"'"
|
|
|
|
certbot:
|
|
|
|
image: certbot/certbot
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2023-08-15 20:39:01 -04:00
|
|
|
- ./data/certbot/conf:/etc/letsencrypt:z
|
|
|
|
- ./data/certbot/www:/var/www/certbot:z
|
2021-01-28 13:34:53 -05:00
|
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|