Public | Automated Build

Last pushed: 2 years ago
Short Description
Minimal static compiled Caddy image for Docker from scratch
Full Description

Minimal static compiled Caddy image for Docker from scratch

This Docker base image provides a Caddy HTTP server compiled statically.

The content shoud be added by a derived image or by binding a path. To use TLS the certificates need be included.

Simple usage

docker run -d -p 8080:2015 -v /home/user/www:/data:ro rzanato/caddy /caddy -root="/data"

With net=host without http2

docker run -d -net=host -v /home/user/www:/data:ro rzanato/caddy /caddy -root=/data -http2=false -port=8080

A Dockerfile with static content

FROM rzanato/caddy

COPY www/ data/

EXPOSE 8080

CMD ["/caddy", "-root=/data", "-http2=false", "-port=8080"]
Docker Pull Command
Owner
rzanato
Source Repository

Comments (0)