Custom Caddy image build with cloudflare dns
207
Built to work with but not limited to, Synology docker or portainer, with Caddy, Tailscale and Cloudflare DNS. Built on the official Caddy image and following their documentation.
The usage and configuration of the container is the same as the official Caddy one.
Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
See Caddy's docs for more information on automatic HTTPS support!
Docker Compose example If you prefer to use docker-compose to run your stack, here's a sample service definition.
version: '3.9'
# Network definitions
name: caddy
networks:
caddy_network:
driver: bridge
external: true
services:
caddy:
image: docker.io/dockersnacks/caddy-cloudflare:latest
restart: always
container_name: caddy
hostname: caddy
networks:
- caddy_network
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- /volume1/docker/caddy-with-dns/etc/caddy/Caddyfile:/etc/caddy/Caddyfile
- /volume1/docker/caddy-with-dns/data:/data
- /volume1/docker/caddy-with-dns/config:/config
- /volume1/docker/caddy-with-dns/site:/srv
# tailscale creates its socket on /tmp, so we'll kidnap from there to expose to caddy
- /volume1/docker/tailscale/tmp/tailscaled.sock:/var/run/tailscale/tailscaled.sock
Content type
Image
Digest
sha256:d66aae4e2…
Size
31.7 MB
Last updated
almost 2 years ago
docker pull dockersnacks/caddy-cloudflare