hexabot/docker/docker-compose.nginx.prod.yml

19 lines
572 B
YAML
Raw Permalink Normal View History

2024-09-10 09:50:11 +00:00
version: "3.8"
services:
nginx:
container_name: nginx
volumes:
2024-09-13 07:22:05 +00:00
- ./nginx/secure/:/etc/nginx/templates/
2024-09-10 09:50:11 +00:00
- /etc/localtime:/etc/localtime:ro
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
2024-09-13 10:07:41 +00:00
- ./nginx/99-autoreload.sh:/docker-entrypoint.d/99-autoreload.sh
2024-09-10 09:50:11 +00:00
certbot:
image: certbot/certbot
volumes:
- ./nginx/certbot/conf:/etc/letsencrypt
- ./nginx/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"