1
0
Fork 0
 
 
Go to file
Ambrose Chua 50220cb01f
continuous-integration/drone/push Build is failing Details
Update GitCommit
2020-05-13 12:17:21 +08:00
.github/ISSUE_TEMPLATE Update issue templates 2019-07-12 23:10:23 +08:00
legacy Improvements to versioning and legacy 2020-05-13 11:43:58 +08:00
library Update GitCommit 2020-05-13 12:17:21 +08:00
scratch Improvements to versioning and legacy 2020-05-13 11:43:58 +08:00
.drone.yml Add dockerhub pipeline 2020-05-13 12:03:50 +08:00
.gitignore Switch to Go modules and script, bump to 1.0.0 2019-07-02 13:45:53 +08:00
LICENSE Fix perms 2017-10-09 18:51:26 +08:00
Makefile Bump Git versions 2020-05-13 12:08:15 +08:00
README.md Push warning for Caddy 2 2020-04-08 00:28:52 +08:00
generate-stackbrew-library.sh Update namespace 2020-05-13 12:16:51 +08:00
update.sh Improvements to versioning and legacy 2020-05-13 11:43:58 +08: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