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 e8e5f6b618 Update issue templates 1 week ago
.github/ISSUE_TEMPLATE Update issue templates 1 week ago
.drone.yml Drone 1.0 syntax 7 months ago
.gitignore Switch to Go modules and script, bump to 1.0.0 3 weeks ago
Caddyfile Initial commit 1 year ago
Dockerfile Switch to Go modules and script, bump to 1.0.0 3 weeks ago
LICENSE Create LICENSE 1 year ago
README.md Update size of image 3 weeks ago
go.mod Switch to Go modules and script, bump to 1.0.0 3 weeks ago
plugger.go Switch to Go modules and script, bump to 1.0.0 3 weeks ago

README.md

caddy

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.

Usage

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 plugins=github.com/abiosoft/caddy-git,github.com/zikes/gopkg .

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

Build without telemetry

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