From e6f66a5f035438d9297ebb63a1402f0a0c832ae9 Mon Sep 17 00:00:00 2001 From: Karmanyaah Malhotra <32671690+karmanyaahm@users.noreply.github.com> Date: Tue, 12 Apr 2022 11:48:55 -0400 Subject: [PATCH] Add Caddy Docker Proxy --- Reverse-Proxy.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Reverse-Proxy.md b/Reverse-Proxy.md index b152f5f..ca5e24c 100644 --- a/Reverse-Proxy.md +++ b/Reverse-Proxy.md @@ -7,6 +7,7 @@ Uptime Kuma **does not support a subdirectory** such as `http://example.com/upti - [Nginx](#nginx) - [Apache](#apache) - [Caddy](#caddy) +- [Caddy with Docker-Compose](#caddy-with-docker-compose) - [Https-Portal](#https-portal) - [Nginx Proxy Manager](#nginx-proxy-manager) - [Synology Builtin Reverse Proxy](#synology-builtin-reverse-proxy) @@ -95,6 +96,37 @@ subdomain.domain.com { } ``` +# Caddy with Docker-compose + +If you run Uptime Kuma using Docker-Compose and don't already have a reverse proxy, this is a simple way to configure Caddy. You only need to replace 'status.example.org' with your domain. + +```yml +version: '3' +networks: + default: + name: 'proxy_network' +services: + uptime-kuma: + image: louislam/uptime-kuma:1 + restart: unless-stopped + volumes: + - /srv/uptime:/app/data + labels: + caddy: status.example.org + caddy.reverse_proxy: "* {{ '{{upstreams 3001}}'}}" + caddy: + image: "lucaslorentz/caddy-docker-proxy:ci-alpine" + ports: + - "80:80" + - "443:443" + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + - /srv/caddy/:/data + restart: unless-stopped + environment: + - CADDY_INGRESS_NETWORKS=proxy_network +``` + # Https-Portal Enabling "WEBSOCKET=true", or the equivalent in your docker environment variables will do the trick.