Skip to content

Latest commit

 

History

History
executable file
·
23 lines (18 loc) · 668 Bytes

README.md

File metadata and controls

executable file
·
23 lines (18 loc) · 668 Bytes

A Caddy image with and without telemetry (no-stats)

https://hub.docker.com/r/swarmstack/caddy/

Usage

Serve files in $PWD:

docker run -it --rm -p 2015:2015 -v $PWD:/www swarmstack/caddy

Overwrite Caddyfile:

docker run -it --rm -p 2015:2015 -v $PWD:/www -v $PWD/Caddyfile:/etc/Caddyfile swarmstack/caddy

Persist /etc/caddycerts to avoid hitting Let's Encrypt's rate limit (ENV CADDYPATH=/etc/caddycerts):

docker run -it --rm -p 2015:2015 -v $PWD:/www -v $PWD/Caddyfile:/etc/Caddyfile -v $PWD/caddycerts:/etc/caddycerts swarmstack/caddy