Nico Huber | 15edd77 | 2023-07-01 18:16:50 +0000 | [diff] [blame] | 1 | version: "3" |
Nico Huber | 15edd77 | 2023-07-01 18:16:50 +0000 | [diff] [blame] | 2 | services: |
| 3 | new: |
| 4 | build: |
| 5 | context: . |
| 6 | dockerfile: ./certbot/Dockerfile |
| 7 | env_file: environment |
| 8 | volumes: &cb-volumes |
| 9 | - ./certs/:/etc/letsencrypt/:rw |
| 10 | - ./certbot/www/:/var/www/certbot/:rw |
| 11 | - ./certbot/lib/:/var/lib/letsencrypt/:rw |
| 12 | - ./logs/certbot/:/var/log/letsencrypt/:rw |
Nico Huber | c5ab17f | 2023-07-21 22:30:59 +0000 | [diff] [blame] | 13 | command: certonly -m ${SA_DOMAIN_CONTACT} --webroot --webroot-path /var/www/certbot |
Nico Huber | 15edd77 | 2023-07-01 18:16:50 +0000 | [diff] [blame] | 14 | -d "${SA_PUBLIC_DOMAIN_NAME},id.${SA_PUBLIC_DOMAIN_NAME},mail.${SA_PUBLIC_DOMAIN_NAME},review.${SA_PUBLIC_DOMAIN_NAME}" |
| 15 | renew: |
| 16 | image: certbot/certbot |
| 17 | volumes: *cb-volumes |
| 18 | command: renew -n --agree-tos |