caddy docker images
# build for x86_64
make
# build for armhf
make armhf
docker run --name caddy \
-v caddy_root:/www \
-v caddy_certs:/root/.caddy \
-p 80:80 -p 443:443 -p 2015:2015 \
-e [email protected] \
klutchell/caddy
| Name | Description | Example |
|---|---|---|
CADDY_EMAIL | email address to use for TLS certificate generation | [email protected] |
CADDY_ROOT | path to the default site root from which to serve files | /www |
CADDY_FILE | the caddyfile to use to configure caddy | /www/Caddyfile |
TZ | container timezone | America/Toronto |
add server definitions to /www/Caddyfile or mount your own Caddyfile
# example Caddyfile to proxy http/https requests to another server
my.customdomain.com {
gzip
tls {
dns cloudflare
}
reauth {
path /
simple myuser=mypassword
}
proxy / 192.168.86.13:80 {
transparent
websocket
}
}
Kyle Harding [email protected]
Content type
Image
Digest
Size
19.7 MB
Last updated
about 8 years ago
docker pull klutchell/caddy