A Docker image for Caddy. This image includes git, filebrowser, cors, realip, expires and cache plugins.
$ docker run -d --name caddy \
-v $HOME/Caddyfile:/etc/Caddyfile \
-p 80:80 -p 443:443 -p 2015:2015 \
john123951/caddy
Caddyfile
127.0.0.1 {
ext .html .htm .php
gzip
proxy / http://www.12306.com {
transparent
insecure_skip_verify
}
tls {
dns cloudflare
}
log requests.log {
rotate_size 50 # Rotate after 50 MB
rotate_age 90 # Keep rotated files for 90 days
rotate_keep 20 # Keep at most 20 log files
rotate_compress # Compress rotated log files in gzip format
}
}
Point your browser to http://127.0.0.1:2015.
$ docker run -d --name caddy \
-v $HOME/Caddyfile:/etc/Caddyfile \
-p 80:80 -p 443:443 -p 2015:2015 \
-e CLOUDFLARE_EMAIL:[email protected] -e CLOUDFLARE_API_KEY:******** \
john123951/caddy
Content type
Image
Digest
Size
22.3 MB
Last updated
over 6 years ago
docker pull john123951/caddy