make LE work

This commit is contained in:
Matthew Hodgson
2024-11-08 18:01:09 +00:00
parent 71f75417ac
commit fe2192166e
3 changed files with 44 additions and 38 deletions

View File

@@ -92,7 +92,13 @@ services:
volumes:
- ${VOLUME_PATH}/data/certbot/conf:/etc/letsencrypt
- ${VOLUME_PATH}/data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while [ -e /etc/letsencrypt/live ]; do certbot renew; sleep 12h & wait $${!}; done;'"
- ${VOLUME_PATH}/data/ssl:/data/ssl
entrypoint: "/bin/sh -c 'trap exit TERM; \
while [ -e /etc/letsencrypt/live ]; \
do certbot --webroot -w /var/www/certbot renew; \
cp /etc/letsencrypt/live/$DOMAIN/*.pem /data/ssl; \
sleep 12h & wait $${!}; \
done;'"
postgres:
image: postgres:latest