caddy-with-cloudflare-dns
1.6K
docker-compose.yaml
services:
caddy:
image: lhbdhr/caddy-with-cloudflare
container_name: caddy
restart: unless-stopped
environment:
- TZ=Asia/Shanghai
sysctls:
- net.core.rmem_max=2500000
cap_add:
- NET_ADMIN
ports:
- '443:443'
- '443:443/udp'
volumes:
- $PWD/caddyfile:/etc/caddy/Caddyfile
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
external: true
caddy_config:
caddyfile
{
admin off
log {
output file /etc/caddy/warn.log
level debug
format json {
time_local
time_format wall
}
}
email [email protected]
acme_dns cloudflare xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
}
domain.com {
root * /srv/
file_server
}
Content type
Image
Digest
sha256:58c604802…
Size
37 MB
Last updated
7 months ago
docker pull lhbdhr/caddy-with-cloudflare