Docker image for Caddy
100K+

A docker image for Caddy.
This image uses a release from github, so it is a subject to the project's Apache 2.0 license and not to the EULA license.
You can use it for almost everything. This project is licensed under MIT. See LICENSE.md for details.
docker run -p 2015:2015 wemakeservices/caddy-docker
This image is created to be used in docker-compose.yml. Here's an example:
version: '3'
services:
caddy:
image: "wemakeservices/caddy-docker:latest"
volumes:
- ./some/path:/root/.caddy # to save certificates on disk
- ./some/Caddyfile:/etc/Caddyfile # to mount custom Caddyfile
ports:
- "2015:2015"
- "80:80"
- "443:443"
depends_on:
- web
web:
build: .
command: python manage.py runserver 0.0.0.0:5000
ports:
- "5000:5000"
Just specify another Caddyfile via command line:
docker run -p 2015:2015 -v `pwd`/test/Caddyfile:/etc/Caddyfile wemakeservices/caddy-docker
Let's Encrypt has rate limits. It is wise to reuse certificates and back them up:
docker run -p 2015:2015 -v `pwd`/backup:/root/.caddy wemakeservices/caddy-docker
It is also possible to combine this trick with Changing default Caddyfile.
This image supports VERSION build-time argument:
docker build --build-arg VERSION=0.10.0 -t caddy:0.10.0 .
caddy-genIf you are building a container from source, you will need to build it as follows:
docker build -t caddy:latest .
And then run it locally:
docker run -p 2015:2015 caddy:latest
Content type
Image
Digest
Size
18.8 MB
Last updated
over 8 years ago
docker pull wemakeservices/caddy-docker