hotio/caddy
GitHub
docker.io
/ ghcr.io
Caddy
00
What is this?
A docker image with Caddy 2 and fail2ban integrated.
Starting the container¶
docker run --rm \
--name caddy \
-p 80:8080 \
-p 443:8443 \
-e PUID=1000 \
-e PGID=1000 \
-e UMASK=002 \
-e TZ="Etc/UTC" \
-e CUSTOM_BUILD="" \
-v /<host_folder_config>:/config \
--cap-add=NET_ADMIN \
cr.hotio.dev/hotio/caddy
version: "3.7"
services:
caddy:
container_name: caddy
image: cr.hotio.dev/hotio/caddy
ports:
- "80:8080"
- "443:8443"
environment:
- PUID=1000
- PGID=1000
- UMASK=002
- TZ=Etc/UTC
- CUSTOM_BUILD
volumes:
- /<host_folder_config>:/config
cap_add:
- NET_ADMIN
Custom build¶
If you set the environment variable CUSTOM_BUILD
to a file location like for example /config/caddy_linux_amd64_custom
, an attempt is made to start Caddy with that binary. The custom build can be obtained from the Caddy download page. This is particularly useful if you need extra modules.
Tags¶
Tag | Description | Version | Commit SHA | Commit Message | Last Updated | Age |
---|
Tags
The above table reflects the current state of the Git repository. The docker repository is mainly in sync, unless builds fail or commits are pushed for which no builds are started (usually indicated with [skip ci]
in the commit message). You can click on the tag's name to go to its corresponding branch on GitHub, clicking the commit sha brings you to the git diff of that commit.