marcbachmann / caddy

Caddy docker images for ARM, amd64 (x64) and i386

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Caddy docker images for ARM, amd64 (x64) and i386

License:Other


Languages

Language:Shell 100.0%