Skip to content

Commit

Permalink
docker-compose.yml: fix LE mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
papko26 authored Feb 3, 2025
1 parent 9674142 commit 502aa78
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ services:
source: /etc/nginx/certs
target: /etc/letsencrypt
read_only: true
- type: bind
source: /var/www/certbot
target: /var/www/certbot
restart: always

certbot:
Expand All @@ -43,5 +46,8 @@ services:
- type: bind
source: /etc/nginx/certs-data
target: /var/lib/letsencrypt
- type: bind
source: /var/www/certbot
target: /var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do sleep 6h & wait $${!}; certbot renew; done'"
restart: unless-stopped
restart: unless-stopped

0 comments on commit 502aa78

Please sign in to comment.