sha256:ef8c013ea116186dc6978fc39dc55f2cbecb7b8fccabfb0b374e38449305f348
Last pushed
7 months by codingjoe
Type
Compose
Manifest digest
sha256:ef8c013ea116186dc6978fc39dc55f2cbecb7b8fccabfb0b374e38449305f348
services:
caddy:
container_name: caddy
image: caddy:2.10.2-alpine
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- /etc/localtime:/etc/localtime:ro
- caddy_data:/data
- caddy_config:/config
configs:
- source: caddyfile
target: /etc/caddy/Caddyfile
networks:
- app
- wan
environment:
HOSTNAME: ${HOSTNAME}
healthcheck:
test: ["CMD-SHELL", "caddy validate --config /etc/caddy/Caddyfile"]
deploy:
mode: global
labels:
dev.dozzle.group: the-box
networks:
app:
name: app
driver: bridge
internal: true
wan:
name: wan
driver: bridge
volumes:
caddy_data:
caddy_config:
configs:
caddyfile:
content: |
{
log {
output stdout
format json
}
}
import /etc/caddy/*.caddy
:80, :443 {
respond "Not Found" 404
}
docker compose -f oci://codingjoe/test:latest upUse the above command to pull and run the Compose file. Learn more.
Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
Pulls
500M+
Stars
986
Last Updated
3 days