diff options
author | crupest <crupest@outlook.com> | 2022-11-23 11:39:43 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-23 11:39:43 +0800 |
commit | 24bdcdb0c8dd59c18bc0e1b8c53b1f94fdfa7429 (patch) | |
tree | f228dd85e6c0ac92c6268bc46d72e210987cee2b /template | |
parent | e6b0b7f80745fc6612e72b0ac443b515cd84edda (diff) | |
download | crupest-24bdcdb0c8dd59c18bc0e1b8c53b1f94fdfa7429.tar.gz crupest-24bdcdb0c8dd59c18bc0e1b8c53b1f94fdfa7429.tar.bz2 crupest-24bdcdb0c8dd59c18bc0e1b8c53b1f94fdfa7429.zip |
Fix auto-certbot.
Diffstat (limited to 'template')
-rw-r--r-- | template/docker-compose.yaml.template | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template index 058a60c..57a9b5c 100644 --- a/template/docker-compose.yaml.template +++ b/template/docker-compose.yaml.template @@ -83,6 +83,8 @@ services: pull: true args: - CRUPEST_DOMAIN=$CRUPEST_DOMAIN + - CRUPEST_AUTO_CERTBOT_ADDITIONAL_PACKAGES="docker" + - CRUPEST_AUTO_CERTBOT_POST_HOOK="docker restart nginx" tags: - "crupest/auto-certbot:latest" container_name: auto-certbot @@ -90,6 +92,8 @@ services: - "./data/certbot/certs:/etc/letsencrypt" - "./data/certbot/data:/var/lib/letsencrypt" - "./data/certbot/webroot:/var/www/certbot" + # map docker socket to allow auto-certbot to restart nginx + - "/var/run/docker.sock:/var/run/docker.sock" restart: on-failure:3 networks: - internal |