mirror of
https://github.com/element-hq/element-docker-demo.git
synced 2026-01-24 22:26:13 +03:00
make LE work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user