1
0
Fork 0

Improve README.md

pull/5/head
Ambrose Chua 2017-10-09 20:12:04 +08:00
parent 69075df6ee
commit d9bf829479
2 changed files with 17 additions and 5 deletions

View File

@ -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
```

View File

@ -2,7 +2,3 @@
<h1>
Hello, Caddy!
</h1>
<p>
To use this container, mount your files into /srv. Example:
<pre>docker run -it --rm -p 2015:2015 -v $PWD:/srv productionwentdown/caddy</pre>
</p>