uptime kuma product manifest added

This commit is contained in:
kube-master@emrekirman.com 2025-09-25 11:09:04 +00:00
parent 17d340f8c7
commit 48f0b0b757
2 changed files with 38 additions and 0 deletions

1
uptime-kuma/README.md Normal file
View File

@ -0,0 +1 @@
docker stack deploy -c kuma.yml kuma

37
uptime-kuma/kuma.yml Normal file
View File

@ -0,0 +1,37 @@
version: "3.8"
services:
uptime-kuma:
image: louislam/uptime-kuma:latest
ports:
- "3001:3001" # UI: http://<sunucu-ip>:3001
volumes:
- uptime-kuma-data:/app/data # SQLite verileri burada kalıcı
environment:
- TZ=Europe/Istanbul
deploy:
replicas: 1 # SQLite ile tek replica önerilir
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 10
window: 120s
update_config:
parallelism: 1
order: stop-first
failure_action: rollback
placement:
constraints:
- node.labels.platform == dev # Yalnızca dev etiketli node'a yerleşsin
# Eğer Traefik kullanıyorsan (opsiyonel), şu label'ları açabilirsin:
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.kuma.rule=Host(`status.example.com`)"
# - "traefik.http.routers.kuma.entrypoints=websecure"
# - "traefik.http.services.kuma.loadbalancer.server.port=3001"
volumes:
uptime-kuma-data:
name: uptime-kuma-data
driver: local