https://github.com/marcbachmann/caddy
Caddy docker images for ARM, amd64 (x64) and i386
https://github.com/marcbachmann/caddy
Last synced: 9 months ago
JSON representation
Caddy docker images for ARM, amd64 (x64) and i386
- Host: GitHub
- URL: https://github.com/marcbachmann/caddy
- Owner: marcbachmann
- License: other
- Created: 2017-08-21T21:41:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:38:35.000Z (over 2 years ago)
- Last Synced: 2025-01-07T20:08:05.307Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 154 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Caddy Container Image](https://github.com/marcbachmann/caddy) [](https://hub.docker.com/r/marcbachmann/caddy)
This is a [caddy] image from [scratch].
Check the [caddy docs] for more information how to configure it.
You can run it like that:
```
docker run -p 80:80 443:443 \
-v /etc/Caddyfile:/etc/Caddyfile \
marcbachmann/caddy:0.10.6-amd64-raw -conf /etc/Caddyfile
```
### Tags
- `latest-$arch-raw`, `0.10.7-$arch-$plugins`
- `latest-$arch-semi`, `0.10.7-$arch-$plugins`
- `0.10.6-$arch-$plugins`
- `0.10.6-$arch-$plugins`
Please replace `$arch` and `$plugins` with the keywords below:
e.g. `latest-amd64-raw`
### Architectures
- `386`
- `amd64`, this is usually what you want on a regular aws vm
- `arm5`
- `arm6`
- `arm7`
- `arm64`
### Plugins
- `raw`, no plugins
- `semi`, http.cache,http.cors,http.expires,http.filter,http.prometheus,http.realip,http.reauth
## SSL Certificates
Caddy mounts writes all ssl certificates into `/.caddy`. So if you want to persist them, you can mount a volume there.
e.g.
```
docker run -d --restart=always --name caddy -v /etc/caddy:/etc/caddy -v /tmp/caddy:/.caddy -p 80:80 -p 443:443 marcbachmann/caddy:0.10.6-amd64-semi caddy -conf /etc/caddy/Caddyfile
```
## Acknowledgements
Thanks to @joshix for the initial setup in https://github.com/joshix/caddybox
[caddy]: https://caddyserver.com
[caddy docs]: https://caddyserver.com/docs
[scratch]: https://hub.docker.com/_/scratch/