Skip to content

Commit d9bf829

Browse files
Improve README.md
1 parent 69075df commit d9bf829

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11

2-
# caddy
2+
# [caddy](https://hub.docker.com/r/productionwentdown/caddy/)
33

44
A tiny 4MB Caddy image compressed with [UPX](https://github.com/upx/upx).
55

66
[![](https://images.microbadger.com/badges/image/productionwentdown/caddy.svg)](https://microbadger.com/images/productionwentdown/caddy "Get your own image badge on microbadger.com")
77

8+
# Usage
9+
10+
Serve files in `$PWD`:
11+
```
12+
docker run -it --rm -p 2015:2015 -v $PWD:/srv productionwentdown/caddy
13+
```
14+
15+
Overwrite `Caddyfile`:
16+
```
17+
docker run -it --rm -p 2015:2015 -v $PWD:/srv -v $PWD/Caddyfile:/etc/Caddyfile productionwentdown/caddy
18+
```
19+
20+
Persist `.caddy` to avoid hitting Let's Encrypt's rate limit:
21+
```
22+
docker run -it --rm -p 2015:2015 -v $PWD:/srv -v $PWD/Caddyfile:/etc/Caddyfile -v $HOME/.caddy:/etc/.caddy productionwentdown/caddy
23+
```

index.html

-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
<h1>
33
Hello, Caddy!
44
</h1>
5-
<p>
6-
To use this container, mount your files into /srv. Example:
7-
<pre>docker run -it --rm -p 2015:2015 -v $PWD:/srv productionwentdown/caddy</pre>
8-
</p>

0 commit comments

Comments
 (0)