Nixstats Webhook Docker based on Alpine 3.17 & PHP 8.1
This Webhook wrote in PHP allow telegram notifications when Nixstats monitor's status changes.
- Customize servers and domains notifications in the functions.php file
- Check the downtime intervall when the domain's close notification is sent
- Enable or disable the Bitly API function to minimize URLs
- First, you need to start a conversation with @BotFather and create a BOT in Telegram, choose a Name, a Nickname and get your Bot Token :
- Start a conversation now with @MyIdBot to get your Telegram User ID :
- Now you can pull image
docker pull martinbouillaud/nixstatswh:latest
HTTP_SERVER_NAME
(a server name, defaults towww.example.com
)LOG_LEVEL
(a log level, defaults toinfo
)TZ
(a timezone, defaults toUTC
)PHP_MEMORY_LIMIT
(a memory-limit, defaults to256M
)PHP_UPLOAD_MAX_FILESIZE
(a upload_max_filesize, defaults to8M
)PHP_POST_MAX_SIZE
(a post_max_size, defaults to8M
)TELEGRAM_BOT_TOKEN
(Your Telegram Bot Token)TELEGRAM_CHATID
(Your Telegram Chat ID)
Replace nixstatswh and tags with whatever you want when building your own image.
docker build -t nixstatswh:latest .
docker run -d --name nixstatswh -e TELEGRAM_BOT_TOKEN=XXXX -e TELEGRAM_CHATID=XXXX -p 80:80 martinbouillaud/nixstatswh:latest
docker run -d \
--name nixstatswh \
-e HTTP_SERVER_NAME="www.example.xyz" \
-e TZ="Europe/Paris" \
-e PHP_MEMORY_LIMIT="512M" \
-e TELEGRAM_BOT_TOKEN="XXXX" \
-e TELEGRAM_CHATID="XXXX" \
--publish 80:80 \
--restart unless-stopped \
martinbouillaud/nixstatswh:latest
version: "3.3"
nixstatswh:
container_name: nixstatswh
image: martinbouillaud/nixstatswh:latest
ports:
- "8080:80"
environment:
- HTTP_SERVER_NAME=nixstatswh.example.com
- TZ=Europe/Paris
- PHP_MEMORY_LIMIT=256M
- TELEGRAM_BOT_TOKEN=XXXXXX
- TELEGRAM_CHATID=XXXXXX