Sign inSign up

paularlott/knot-caddy

By paularlott

•Updated 1 day ago

Base image used by other knot images to provide web services.

Image
Web servers
0

2.7K

paularlott/knot-caddy repository overview

⁠knot-caddy

A Caddy⁠ web server image built from source with xcaddy⁠, bundling a set of useful modules. It is primarily a build-time dependency for the knot-php image (which copies the Caddy binary into its own image), but it also works as a standalone reverse proxy / web server. Part of the knot⁠ base images.

The binary is cross-compiled for both linux/amd64 and linux/arm64 during a single build, then the correct one is selected for the target platform.

⁠Tags

All tags are multi-arch (linux/amd64, linux/arm64); see Docker Hub⁠ for the current list.

Each release is also tagged <version>-<BUILD_DATE>.

⁠Bundled Caddy modules

In addition to Caddy's standard modules, the binary is built with:

⁠Usage

docker run -d \
  -p 80:80 -p 443:443 -p 443:443/udp -p 2019:2019 \
  -v caddy_config:/config -v caddy_data:/data \
  paularlott/knot-caddy:2.11.4

Mount your own Caddyfile at /etc/caddy/Caddyfile to configure sites. The default command runs Caddy with the bundled base config:

CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]

⁠Exposed ports

PortProtocolPurpose
80TCPHTTP
443TCPHTTPS
443UDPHTTP/3
2019TCPCaddy admin API

⁠Volumes

  • /config — Caddy configuration state (XDG_CONFIG_HOME).
  • /data — Caddy data/certificates (XDG_DATA_HOME).

⁠Environment variables

VariableDefaultDescription
XDG_CONFIG_HOME/configWhere Caddy stores its config
XDG_DATA_HOME/dataWhere Caddy stores data / certs

⁠License

Caddy is Apache 2.0⁠. This image's packaging (Dockerfile and config) is Apache License 2.0⁠.

Source: paularlott/knot-base-images⁠.

Tag summary

Content type

Image

Digest

sha256:a8349878b…

Size

33.2 MB

Last updated

about 1 year ago

docker pull paularlott/knot-caddy