-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
29 lines (29 loc) · 1.5 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
25
26
27
28
29
services:
pingpanda:
image: ghcr.io/kingpin/pingpanda:latest # Use the latest image
container_name: pingpanda # Container name
environment:
- LOG_DIR=/logs # Directory to store logs
- LOG_TO_TERMINAL=true # Log to terminal
- LOG_TO_FILE=true # Log to file
- INTERVAL=15 # Interval in seconds
- VERBOSE=true # Enable verbose logging
- MAX_LOG_SIZE=1048576 # Maximum log size in bytes
- LOG_BACKUP_COUNT=5 # Number of backup logs to keep
- ENABLE_PING=true # Enable ping checks
- ENABLE_DNS=true # Enable DNS checks
- ENABLE_WEBSITE_CHECK=true # Enable website check
- CHECK_WEBSITE=https://www.google.com # Website to check
- RETRY_COUNT=1 # Number of retries for checks
- SUCCESS_HTTP_CODES=200,201,202 # HTTP status codes considered successful
- SLACK_WEBHOOK_URL= # Slack webhook URL for notifications
- TEAMS_WEBHOOK_URL= # Teams webhook URL for notifications
- DISCORD_WEBHOOK_URL= # Discord webhook URL for notifications
- ALERT_THRESHOLD=3 # Number of consecutive failures before alerting
- DOMAINS=google.com,yahoo.com # Comma-separated list of domains to check DNS for
- PING_IPS=8.8.8.8,1.1.1.1 # Comma-separated list of IPs to ping
- SSL_CHECK_DOMAINS=google.com,yahoo.com # Comma-separated list of domains to check SSL expiry
- ENABLE_SSL_CHECK=false # Enable SSL expiry check
volumes:
- ./logs:/logs # Mount logs directory
restart: unless-stopped # Restart unless stopped