diff --git a/README.md b/README.md index 0eaa74f..08226a1 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,23 @@ -# caddy +# [caddy](https://hub.docker.com/r/productionwentdown/caddy/) A tiny 4MB Caddy image compressed with [UPX](https://github.com/upx/upx). [![](https://images.microbadger.com/badges/image/productionwentdown/caddy.svg)](https://microbadger.com/images/productionwentdown/caddy "Get your own image badge on microbadger.com") +# 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 +``` diff --git a/index.html b/index.html index d7623b9..382e53b 100755 --- a/index.html +++ b/index.html @@ -2,7 +2,3 @@

Hello, Caddy!

-

- To use this container, mount your files into /srv. Example: -

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