mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Add Caddy Docker Proxy
parent
c938943e22
commit
e6f66a5f03
1 changed files with 32 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue