diff --git a/README.md b/README.md index 668c1d6..7a4b6cd 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ This repository contains Docker Compose setups for a variety of applications, en - Mailpit (`email/mailpit`) - **Monitoring** - GlitchTip (`monitoring/codebase/glitchtip`) + - Uptime Kuma (`monitoring/services/uptime-kuma`) - **Networking** - Traefik (`networking/proxies/traefik`) - **Security** diff --git a/monitoring/services/uptime-kuma/docker-compose.yml b/monitoring/services/uptime-kuma/docker-compose.yml new file mode 100644 index 0000000..d092361 --- /dev/null +++ b/monitoring/services/uptime-kuma/docker-compose.yml @@ -0,0 +1,24 @@ +networks: + internal: + name: "internal" + # External means the container will be accessible from other containers in the same network. + # If you want to isolate the container create a new network, with different name for each container and without being external. + external: true + +volumes: + uptime-kuma: + name: "uptime-kuma" + +services: + uptime-kuma: + image: "louislam/uptime-kuma:2.5.0" + container_name: "uptime-kuma" + restart: "unless-stopped" + networks: + - "internal" + ports: + - "${UPTIME_KUMA_PORT?Variable not set}:3001" + volumes: + - "uptime-kuma:/app/data" + labels: + - "traefik.enable=false" diff --git a/monitoring/services/uptime-kuma/template.env b/monitoring/services/uptime-kuma/template.env new file mode 100644 index 0000000..1e61772 --- /dev/null +++ b/monitoring/services/uptime-kuma/template.env @@ -0,0 +1,8 @@ +# For all strings containing special characters, use single quotes. +# In case of older docker compose versions (<3.9), do not use single or double quotes at all. + +# Container's docker environment configuration. +COMPOSE_PROJECT_NAME='lowercase_string_without_special_characters' + +# Uptime Kuma's docker environment configuration. +UPTIME_KUMA_PORT=1234