From a7894ca20700106322aea33db1155e2ca9e5075a Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 8 Jan 2026 21:13:56 +0100 Subject: [PATCH] feat(service): add uptime kuma with mariadb template (#7256) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 🏔️ Peak <122374094+peaklabs-dev@users.noreply.github.com> --- .../compose/uptime-kuma-with-mariadb.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 templates/compose/uptime-kuma-with-mariadb.yaml diff --git a/templates/compose/uptime-kuma-with-mariadb.yaml b/templates/compose/uptime-kuma-with-mariadb.yaml new file mode 100644 index 000000000..926b2beaa --- /dev/null +++ b/templates/compose/uptime-kuma-with-mariadb.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: + mariadb: + condition: service_healthy + + mariadb: + image: mariadb:11 + environment: + - MYSQL_USER=${SERVICE_USER_MARIADB} + - MYSQL_PASSWORD=${SERVICE_PASSWORD_MARIADB} + - MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_ROOT} + - MYSQL_DATABASE=${MYSQL_DATABASE:-uptime-kuma-db} + healthcheck: + test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] + interval: 5s + timeout: 20s + retries: 10 + volumes: + - mariadb-data:/var/lib/mysql