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
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
386
amd64
, this is usually what you want on a regular aws vmarm5
arm6
arm7
arm64
raw
, no pluginssemi
, http.cache,http.cors,http.expires,http.filter,http.prometheus,http.realip,http.reauth
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
Thanks to @joshix for the initial setup in https://github.com/joshix/caddybox