-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
24 lines (23 loc) · 1.14 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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: <REPLACE_ME> # required
DB_PASSWORD: <REPLACE_ME> # required
DB_HOST: <REPLACE_ME> # 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: <REPLACE_ME> # required. Used to identify the node in the alert message
CLUSTER_MIN_SIZE: <REPLACE_ME> # required. Minimum number of nodes in the cluster, used to determine if the cluster is in a degraded state
WEBHOOK_URL: <REPLACE_ME> # required. Discord webhook URL for notifications
ROLE_TO_MENTION: <REPLACE_ME> # 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