You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ambrose Chua 38c5157832
Bump Go version
2 months ago
.github/ISSUE_TEMPLATE Update issue templates 7 months ago
.drone.yml Drone 1.0 syntax 1 year ago
.gitignore Switch to Go modules and script, bump to 1.0.0 7 months ago
Caddyfile Initial commit 2 years ago
Dockerfile Bump Go version 2 months ago
LICENSE Create LICENSE 2 years ago Update size of image 7 months ago
plugger.go bump to 1.0.2 6 months ago


A tiny 9MB Caddy image compressed with UPX.

Notice: I keep this manually updated. If it goes out of date, ping me via Twitter @serverwentdown.


Serve files in $PWD:

docker run -it --rm -p 2015:2015 -v $PWD:/srv productionwentdown/caddy

Overwrite Caddyfile:

docker run -it --rm -p 2015:2015 -v $PWD:/srv -v $PWD/Caddyfile:/etc/Caddyfile productionwentdown/caddy

Persist .caddy to avoid hitting Let’s Encrypt’s rate limit:

docker run -it --rm -p 2015:2015 -v $PWD:/srv -v $PWD/Caddyfile:/etc/Caddyfile -v $HOME/.caddy:/etc/.caddy productionwentdown/caddy

Build with plugins

Using docker build arguments:

docker build -t caddy --build-arg, .

You can also fork and edit plugger.go for more advanced plugin configuration

Build without telemetry

docker build -t caddy --build-arg telemetry=false