Skip to content

smt/caddy-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

caddy-docker

A Docker image for Caddy.

Getting Started

Create a Caddyfile

Sample Caddyfile using git middleware.

$ printf "0.0.0.0\ngit github.com/abiosoft/webtest" > Caddyfile

Run the image

$ docker run -d -v `pwd`/Caddyfile:/etc/Caddyfile -p 2015:2015 abiosoft/caddy

Point your browser to http://127.0.0.1:2015.

Usage

Paths in container

Caddyfile: /etc/Caddyfile

Server root: /srv

Serving local sites

Serve /var/www/html/mysite with Caddy

$ docker run -d -v /var/www/html/mysite:/srv -v path/to/Caddyfile:/etc/Caddyfile -p 2015:2015 abiosoft/caddy

About

Docker container for Caddy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published