uptime kuma product manifest added
This commit is contained in:
parent
17d340f8c7
commit
48f0b0b757
1
uptime-kuma/README.md
Normal file
1
uptime-kuma/README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
docker stack deploy -c kuma.yml kuma
|
||||
37
uptime-kuma/kuma.yml
Normal file
37
uptime-kuma/kuma.yml
Normal 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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user