version: '3.7' services: galera_health_check: container_name: galera_health_check image: ghcr.io/seaweedbraincy/galera_cluster_healthcheck:latest user: 1000:1000 security_opt: - no-new-privileges:true read_only: true environment: DB_USER: # required DB_PASSWORD: # required DB_HOST: # required DB_PORT: 3306 # optional. Default is 3306 CHECK_INTERVAL: 60 # optional. Default is 60. Healthcheck interval in seconds ALERT_THROTTLE: 10800 # optional. Default is 10800s (3h). Amount of time in senconds between 2 consecutive alerts NODE_NAME: # required. Used to identify the node in the alert message CLUSTER_MIN_SIZE: # required. Minimum number of nodes in the cluster, used to determine if the cluster is in a degraded state WEBHOOK_URL: # required. Discord webhook URL for notifications ROLE_TO_MENTION: # option. Discord role ID to mention in the alert message. If not provided, no role will be mentioned volumes: - ./docker_logs:/app/logs restart: always