GitHub: https://github.com/reverie89/caddy
This is an automated build for reverie89/caddy.
Checks daily for updates to the caddy Docker image.
Based on official image, then added: caddy-dns/cloudflare module
docker-compose.yaml
services:
caddy:
image: reverie89/caddy
container_name: caddy
restart: always
environment:
- CLOUDFLARE_API_TOKEN=xxx
ports:
- "80:80/tcp"
- "443:443/tcp"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "./Caddyfile:/etc/caddy/Caddyfile"
- "./config:/config"
- "./data:/data"
- "/var/www:/var/www"
subdomain.example.com {
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
reverse_proxy /* endpoint:80
}
example.com {
tls {
dns cloudflare {env.CLOUDFLARE_API_TOKEN}
}
root * /var/www/example.com
}
Take note
/config and /datadocker exec -w /etc/caddy {container_name} caddy reloaddocker exec -w /etc/caddy {container_name} caddy fmt --overwriteContent type
Image
Digest
sha256:d12824479…
Size
39.2 MB
Last updated
12 days ago
docker pull reverie89/caddy:2.11.4