38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
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
|
||
|