Public Repository

Last pushed: 2 years ago
Short Description
Caddy Server running on Alpine
Full Description

Caddy server

This image contains Caddy Server based of Alpine.


The container only needs a Caddyfile linked to etc/caddy/Caddyfile:

docker run -d -p 80:80 caddy -v ./Caddyfile:/etc/caddy/Caddyfile fiberto/caddy

You can link your containers to caddy using:

docker run -d -p 80:80 -v ./Caddyfile:/etc/caddy/Caddyfile --link othercontainer:container fiberto/caddy

Also if you need additional options to the caddy binary use:

docker run -d -p 80:80 -v ./Caddyfile:/etc/caddy/Caddyfile fiberto/caddy -agree -email

By default this container is using the flag -conf /etc/caddy/Caddyfile.


If you are using Caddy Server to generate SSL certificates, don't forget to persist data using another volume, the certificates are stored by default in /root/.caddy

Docker Pull Command