Based on the official Caddy image, this also includes the Cloudflare DNS plugin.
- CLOUDFLARE_EMAIL
- CLOUDFLARE_API_TOKEN
To get the Cloudflare API token please follow these instructions.
$ docker pull igoramadas/caddy-cloudflare
$ docker run -it --name caddy-cloudflare \
-p 80:80 \
-p 443:443 \
-v /mount/to/caddy/data:/data \
-v /mount/to/caddy/config:/config \
-v /mount/to/Caddyfile:/etc/caddy/Caddyfile \
-e [email protected] \
-e CLOUDFLARE_API_TOKEN=my-api-token \
igoramadas/caddy-cloudflare
Please note that you might need to adjust the exposed ports accordingly.
Please check the official caddy Docker image for extra options running the service.