mirror of
https://github.com/hexastack/hexabot
synced 2024-12-29 15:31:04 +00:00
19 lines
572 B
YAML
19 lines
572 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
nginx:
|
|
container_name: nginx
|
|
volumes:
|
|
- ./nginx/secure/:/etc/nginx/templates/
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./nginx/certbot/conf:/etc/letsencrypt
|
|
- ./nginx/certbot/www:/var/www/certbot
|
|
- ./nginx/99-autoreload.sh:/docker-entrypoint.d/99-autoreload.sh
|
|
|
|
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;'"
|