Caddy as reverse proxy for Uptime Kuma.
Download the compose.yaml
file:
curl -O https://raw.githubusercontent.com/gremo/compose-selfhosted/main/src/uptime-kuma/compose.yaml
Create an empty .env
file to hold environment variables:
touch .env
Supported variables:
Variable | Required | Default | Description |
---|---|---|---|
DOMAIN |
localhost | The domain name |
docker compose up -d
Endpoint | Service |
---|---|
http://localhost | Uptime Kuma |
A www redirection to non-www can be performed adding the following labels to the caddy
service:
labels:
caddy: www.${DOMAIN:-localhost}
caddy.redir: "http://${DOMAIN:-localhost}{uri}"