run as root

This commit is contained in:
Andreas Knuth 2025-03-22 12:52:12 +01:00
parent 09b7a16fd1
commit 1a4d14b396
1 changed files with 2 additions and 5 deletions

View File

@ -2,12 +2,9 @@ services:
certbot:
image: certbot/dns-cloudflare
volumes:
- ./letsencrypt:/letsencrypt
- ./letsencrypt:/etc/letsencrypt
- ./cloudflare:/cloudflare
- ./certbot/logs:/logs
- ./certbot/work:/work
environment:
- DOMAIN=${DOMAIN:-mail.haiky.app}
- EMAIL=${EMAIL:-deine-email@example.com}
user: "${UID:-1000}:${GID:-1000}"
command: certonly --dns-cloudflare --dns-cloudflare-credentials /cloudflare/cloudflare.ini --email ${EMAIL:-deine-email@example.com} --agree-tos --no-eff-email -d ${DOMAIN:-mail.haiky.app} --config-dir /letsencrypt --work-dir /work --logs-dir /logs
command: certonly --dns-cloudflare --dns-cloudflare-credentials /cloudflare/cloudflare.ini --email ${EMAIL:-deine-email@example.com} --agree-tos --no-eff-email -d ${DOMAIN:-mail.haiky.app}