This is a docker image for Caddy server running on dsuite/alpine-base container.
- /config
- /data
- /var/www
- /var/log
- 80
- 443
- 2019
docker build -t dsuite/caddy .
docker run -it -d --name=caddy \
-p 8080:80 \
-v $(PWD)/path/to/Caddyfile:/etc/caddy/Caddyfile \
-v $(PWD)/path/to/www:/var/www \
dsuite/caddy
Point your browser to http://localhost:2015
.
dsuite/caddy
comes with an installer which download and intall the latest version from caddyserver.com
Update the PLUGINS
environment variable with a coma separated list of plugin and run caddy-install.sh
to download and install the latest version of caddy with the desired plugins.
FROM dsuite/caddy:latest
ENV PLUGINS[0]="github.com/gamalan/caddy-tlsredis"
ENV PLUGINS[1]="github.com/greenpau/caddy-auth-jwt"
Have a look at the example folder. You'll find out how to create an image based on dsuite/caddy