From 42fe26c61c8c1ea57d849ff26f2a478c98453014 Mon Sep 17 00:00:00 2001 From: Elliot Matson Date: Thu, 26 Dec 2024 14:04:59 -0600 Subject: [PATCH] Update kuma, add api --- status/docker-compose.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/status/docker-compose.yml b/status/docker-compose.yml index 870fcda..901eecb 100644 --- a/status/docker-compose.yml +++ b/status/docker-compose.yml @@ -2,7 +2,7 @@ version: "3" services: kuma: - image: louislam/uptime-kuma:2.0.0-beta.0 + image: louislam/uptime-kuma:2.0.0-beta.1 environment: - TZ=America/Chicago volumes: @@ -12,6 +12,7 @@ services: depends_on: - kuma-tailscale network_mode: service:kuma-tailscale + kuma-tailscale: image: ghcr.io/elliotmatson/tailscale-sidecar-proxy:1.78.3 restart: always @@ -26,6 +27,34 @@ services: volumes: - tailscale-state:/var/lib/tailscale + uptime-buddy-api: + image: schech1/uptime-buddy-api:latest + restart: always + #ports: + # - "5005:5005" # If you change the port, also change the PORT Env var + environment: + - UPTIME_KUMA_URL=https://status.tail5c441.ts.net/ # e.g. http://192.168.1.34:3002/ + - EXTERNAL_URL=https://status.tail5c441.ts.net # Optional: e.g. https://uptime.domain.com Use this if you want to use the Qr code feature + - USERNAME=${UPTIME_BUDDY_USER:?err} #Optional: remove line if auth is disabled in Uptime Kuma + - PASSWORD=${UPTIME_BUDDY_PASSWORD:?err} #Optional: remove line if auth is disabled in Uptime Kuma + - TOKEN=${UPTIME_BUDDY_TOKEN:?err} + - MFA=true #Is 2FA enabled in Uptime Kuma? + network_mode: service:buddy-tailscale + + buddy-tailscale: + image: ghcr.io/elliotmatson/tailscale-sidecar-proxy:1.78.3 + restart: always + environment: + TAILSCALE_SSH: true + TAILSCALE_STATE_DIR: /var/lib/tailscale + TAILSCALE_SERVE_SOURCE_MODE: http + TAILSCALE_AUTH_KEY: ${TS_AUTH_KEY:?err} + TAILSCALE_HOSTNAME: status-api + TAILSCALE_FUNNEL: true + TAILSCALE_SERVE_PORT: 5005 + volumes: + - buddy-tailscale-state:/var/lib/tailscale + # api: # image: medaziz11/uptimekuma_restapi:latest # volumes: @@ -53,5 +82,6 @@ services: volumes: kuma-db: tailscale-state: + buddy-tailscale-state: # api-db: