name: meezi

# Self-hosted uptime monitoring for Meezi — Uptime Kuma.
#
# One-time stand-up (does NOT need redeploying with every app deploy):
#   docker compose -f docker-compose.monitoring.yml up -d
#
# Then open https://status.meezi.ir (or http://SERVER:3201) and configure the
# monitors + alert channel as described in docs/monitoring.md.
#
# Config + history persist in the uptime_kuma_data volume.

services:
  uptime-kuma:
    image: ${UPTIME_KUMA_IMAGE:-mirror.soroushasadi.com/louislam/uptime-kuma:1}
    container_name: meezi-uptime-kuma
    restart: unless-stopped
    volumes:
      - uptime_kuma_data:/app/data
    ports:
      - "${UPTIME_KUMA_PORT:-3201}:3001"
    healthcheck:
      test: ["CMD-SHELL", "node extra/healthcheck.js || exit 1"]
      interval: 60s
      timeout: 10s
      retries: 3

volumes:
  uptime_kuma_data:
