blob: 1632cc6595a540d9924083bd9f8a714e96cc3348 [file] [log] [blame]
Nico Huber15edd772023-07-01 18:16:50 +00001version: "3"
Nico Huber15edd772023-07-01 18:16:50 +00002services:
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 Huberc5ab17f2023-07-21 22:30:59 +000013 command: certonly -m ${SA_DOMAIN_CONTACT} --webroot --webroot-path /var/www/certbot
Nico Huber15edd772023-07-01 18:16:50 +000014 -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