HUB
Sign inSign up
scaffold-caddy logo

chrisshennan/scaffold-caddy

By chrisshennan

•Updated 3 days ago

Caddy with Brotli for Scaffold projects; -route53 adds wildcard certs via DNS. Rebuilt weekly.

Image
Web servers
0

970

chrisshennan/scaffold-caddy repository overview

⁠scaffold-caddy

Caddy⁠ images for Scaffold⁠ projects, built with Brotli compression (encode br) and, in the -route53 variant, the Route 53 DNS plugin for wildcard certificates. Multi-arch (linux/amd64, linux/arm64) and rebuilt weekly for security patches.

Source, issues and the build workflow: https://github.com/chrisshennan/scaffold-docker-images⁠

⁠Tags

TagImage
2.11.7Caddy + Brotli. For sites with fixed hostnames (normal HTTP certificate validation).
2.11.7-route53The above + the Route 53 DNS plugin⁠, for wildcard certificates via DNS validation.
  • The tag is the exact Caddy version. Each tag is rebuilt weekly for OS and library security patches.
  • No tag is immutable. To pin an exact build, use a digest: chrisshennan/scaffold-caddy@sha256:....

⁠What's inside

Built from the official caddy⁠ Alpine image with xcaddy:

The image keeps the official image's layout: the Caddyfile is read from /etc/caddy/Caddyfile, state lives in /data and /config, and it exposes ports 80, 443 (TCP and UDP) and 2019. The image is flattened to a single layer. It runs as root, as the official image does.

⁠Usage

FROM chrisshennan/scaffold-caddy:2.11.7-route53
COPY ./Caddyfile /etc/caddy/Caddyfile

Mount a volume on /data so certificates survive container restarts:

services:
  caddy:
    image: chrisshennan/scaffold-caddy:2.11.7
    ports: ["80:80", "443:443", "443:443/udp"]
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy_data:/data
volumes:
  caddy_data:

Example Caddyfile using Brotli, PHP-FPM, and (with the -route53 image) a wildcard certificate:

example.com, *.example.com {
    encode gzip zstd br

    tls {
        dns route53 {
            profile default
        }
    }

    root * /app/public
    php_fastcgi php:9000
    file_server
}

For the -route53 image, AWS credentials are read the way the plugin documents (see https://github.com/caddy-dns/route53⁠). Give them only to that container, and scope the IAM policy to the one hosted zone (ChangeResourceRecordSets, ListHostedZones, GetChange).

⁠Support policy

  • The Caddy version set in the build workflow is rebuilt weekly.
  • Older version tags stay on Docker Hub but are frozen. When the version moves on (for example to 2.11.8 or later), the old tag is no longer rebuilt or patched, so move to the new tag.

⁠License

MIT. See the LICENSE⁠. The images also contain third-party software (Caddy, Alpine packages, the plugins above) under its own licenses.

Copyright (c) 2026 Chris Shennan (https://chrisshennan.com⁠)

Tag summary

Content type

Image

Digest

sha256:598e74a95…

Size

23.5 MB

Last updated

3 days ago

docker pull chrisshennan/scaffold-caddy:2.11.7