1
0
Fork 0
 
 
Go to file
Ambrose Chua 9d2a10af2e
continuous-integration/drone/push Build is passing Details
Bump Caddy to 1.0.2
2019-08-24 18:30:25 +08:00
.github/ISSUE_TEMPLATE Update issue templates 2019-07-12 23:10:23 +08:00
.drone.yml Drone 1.0 syntax 2018-12-01 13:47:19 +08:00
.gitignore Switch to Go modules and script, bump to 1.0.0 2019-07-02 13:45:53 +08:00
Caddyfile Initial commit 2017-10-09 18:14:51 +08:00
Dockerfile bump to 1.0.2 2019-08-18 11:32:23 +03:00
LICENSE Fix perms 2017-10-09 18:51:26 +08:00
README.md Update size of image 2019-07-02 14:01:17 +08:00
go.mod bump to 1.0.2 2019-08-18 11:32:23 +03:00
plugger.go bump to 1.0.2 2019-08-18 11:32:23 +03:00

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