version: "3" | |
services: | |
new: | |
build: | |
context: . | |
dockerfile: ./certbot/Dockerfile | |
env_file: environment | |
volumes: &cb-volumes | |
- ./certs/:/etc/letsencrypt/:rw | |
- ./certbot/www/:/var/www/certbot/:rw | |
- ./certbot/lib/:/var/lib/letsencrypt/:rw | |
- ./logs/certbot/:/var/log/letsencrypt/:rw | |
command: certonly -m ${SA_DOMAIN_CONTACT} --webroot --webroot-path /var/www/certbot | |
-d "${SA_PUBLIC_DOMAIN_NAME},id.${SA_PUBLIC_DOMAIN_NAME},mail.${SA_PUBLIC_DOMAIN_NAME},review.${SA_PUBLIC_DOMAIN_NAME}" | |
renew: | |
image: certbot/certbot | |
volumes: *cb-volumes | |
command: renew -n --agree-tos |