Source code for different (mostly, monitoring) services running on https://terrty.net which is primarily my blog.
Contains Zabbix Server , Plausible, Remark42, Adminer, Grafana, Nginx for https://terrty.net and https://ksinia.net, and databases (MySQL, PostgreSQL ClickHouse, GeoIP) for these.
For IPv6 work on Oracle Linux inside Oracle Cloud run:
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --zone=public --add-port=443/tcp --permanent
sudo firewall-cmd --zone=public --add-port=443/udp --permanent
sudo firewall-cmd --zone=public --add-port=10051/tcp --permanent
sudo firewall-cmd --zone=public --add-port=51820/udp --permanent
sudo firewall-cmd --zone=public --add-port=51821/tcp --permanent
sudo firewall-cmd --reloadExample of VPN servers setup is in the separate file, docker-compose-vpn.yml.
The telegram-notifier service monitors Docker containers and sends Telegram alerts when they stop, restart, or become unhealthy. Currently configured to monitor zabbix-server and zabbix-web containers.
Setup:
-
Create a Telegram bot:
- Message @BotFather on Telegram
- Send
/newbotand follow the instructions - Copy the bot token
-
Get your chat ID:
- Message @userinfobot on Telegram
- Copy your chat ID
-
Update
private/environment/telegram-notifier.env:- Set
TELEGRAM_NOTIFIER_BOT_TOKENto your bot token - Set
TELEGRAM_NOTIFIER_CHAT_IDto your chat ID
- Set
-
Start the monitoring service:
docker-compose up -d telegram-notifier
To monitor additional containers: Add the label telegram-notifier.monitor: true to any service in docker-compose.yml.
Zabbix Agent setup in