docker-compose.ymlversion: "3"
services:
notifier:
image: containerize/notifier
environment:
# debug mode
- NOTIFIER_DEBUG=false
# server port
- NOTIFIER_PORT=8080
# telegram bot token
- NOTIFIER_BOTTOKEN=<telegram bot token>
# telegram send message parse mode
- NOTIFIER_PARSEMODE=<Markdown (default) / HTML / >
# enable send message to admin
- NOTIFIER_ENABLEADMIN=true
# admin ids(split with ,)
- NOTIFIER_ADMINS=<telegram user 1 id,telegram user 2 id>
# group ids(split with ,)
- NOTIFIER_GROUPS=<telegram group 1 id,telegram group 2 id>
# timezone
- TZ=Asia/Macau
ports:
- 20001:8080
docker-compose up -dcurl -X "POST" "http://localhost:20001/send" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"message": "test123"
}'
Content type
Image
Digest
Size
7.5 MB
Last updated
about 8 years ago
docker pull containerize/notifier