Skip to content

Repository files navigation

caddy

Build StatusDocker PullsDocker StarsMicroBadger Layers (tag)MicroBadger Size (tag)License: MIT

This is a docker image for Caddy server running on dsuite/alpine-base container.

Volumes

  • /config
  • /data
  • /var/www
  • /var/log

Ports

  • 80
  • 443
  • 2019

How to use this image

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.

How to add plugins

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.

with a docker file

FROM dsuite/caddy:latest
ENV PLUGINS[0]="github.com/gamalan/caddy-tlsredis"ENV PLUGINS[1]="github.com/greenpau/caddy-auth-jwt"

An example

Have a look at the example folder. You'll find out how to create an image based on dsuite/caddy

About

Minimal Alpine image with Caddy server.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages