1
0
Fork 0
 
 
Go to file
Ambrose Chua c97b19e1dd
continuous-integration/drone/push Build is passing Details
Push warning for Caddy 2
2020-04-08 00:28:52 +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 Caddy version 2020-04-07 23:04:28 +08:00
LICENSE Fix perms 2017-10-09 18:51:26 +08:00
README.md Push warning for Caddy 2 2020-04-08 00:28:52 +08:00
plugger.go bump to 1.0.2 2019-08-18 11:32:23 +03:00

README.md

WARNING: Upcoming Caddy v2 WILL fundamentally change the way Caddy is configured. The latest tag will be changed to reflect that. This LIKELY breaks existing containers using the latest tag and the stock Caddyfile

caddy

A tiny 9MB Caddy image compressed with UPX.

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