From cf06f43aa02d2397ab330ecb367b23aecabd5dff Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 8 Jan 2026 21:10:43 +0100 Subject: [PATCH] feat(service): add uptime kuma v2 with mysql --- templates/compose/uptime-kuma-with-mysql.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 templates/compose/uptime-kuma-with-mysql.yaml diff --git a/templates/compose/uptime-kuma-with-mysql.yaml b/templates/compose/uptime-kuma-with-mysql.yaml new file mode 100644 index 000000000..dffa2f8d2 --- /dev/null +++ b/templates/compose/uptime-kuma-with-mysql.yaml @@ -0,0 +1,38 @@ +# documentation: https://github.com/louislam/uptime-kuma?tab=readme-ov-file +# slogan: Uptime Kuma is a monitoring tool for tracking the status and performance of your applications in real-time. +# category: monitoring +# tags: monitoring, status, performance, web, services, applications, real-time +# logo: svgs/uptime-kuma.svg +# port: 3001 + +services: + uptime-kuma: + image: louislam/uptime-kuma:2 + environment: + - SERVICE_URL_UPTIMEKUMA_3001 + - TZ=${TZ:-Etc/UTC} + volumes: + - uptime-kuma-data:/app/data + healthcheck: + test: ["CMD-SHELL", "extra/healthcheck"] + interval: 5s + timeout: 5s + retries: 10 + depends_on: + mysql: + condition: service_healthy + + mysql: + image: mysql:8 + environment: + - MYSQL_USER=${SERVICE_USER_MYSQL} + - MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL} + - MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT} + - MYSQL_DATABASE=${MYSQL_DATABASE:-uptime-kuma-db} + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1"] + interval: 5s + timeout: 20s + retries: 10 + volumes: + - mysql-data:/var/lib/mysql