Sign inSign up

klutchell/caddy

By klutchell

Updated about 8 years ago

caddy docker images

Image
0

100K+

klutchell/caddy repository overview

docker-caddy

caddy docker images

Build

# build for x86_64
make

# build for armhf
make armhf

Deploy

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

Environment

NameDescriptionExample
CADDY_EMAILemail address to use for TLS certificate generation[email protected]
CADDY_ROOTpath to the default site root from which to serve files/www
CADDY_FILEthe caddyfile to use to configure caddy/www/Caddyfile
TZcontainer timezoneAmerica/Toronto

Usage

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
    }
}

Author

Kyle Harding [email protected]

License

MIT License

Acknowledgments

Tag summary

Content type

Image

Digest

Size

19.7 MB

Last updated

about 8 years ago

docker pull klutchell/caddy