24 lines
773 B
Markdown
Executable File
24 lines
773 B
Markdown
Executable File
|
|
# [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
|
|
```
|