Abstract: Sync my message with NTFY, like server notification, or text message or any other thing you like.
I am a huge fan of self-hosted services, and there is no doubt about it. In my previous articles, I have shared fascinating insights about n8n and obsidian. Lately, I have been facing a challenge with the OSDI conference deadline. Constantly monitoring my program on the server has left me exhausted. Therefore, it is high time for me to explore an intriguing alternative.
Installation
docker-compose
I strongly suggest install NTFY with docker-compose.
services: ntfy: image:binwiederhier/ntfy container_name:ntfy command: -serve environment: -TZ=Europe/London# Set timezone to Europe/London for Edinburgh # user: UID:GID # optional: replace with your own user/group or uid/gid volumes: -/var/cache/ntfy:/var/cache/ntfy -/etc/ntfy:/etc/ntfy ports: -6673:80# Map port 6673 on the host machine to port 80 inside the container # healthcheck: # optional: remember to adapt the host:port to your environment # test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:6673/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] # interval: 60s # timeout: 10s # retries: 3 # start_period: 40s restart:unless-stopped
As my 80 port is occupied by other service on my server, so I use 6673 instead.
If you are unable to receive messages promptly on the client, please substitute “https” with “http” and utilize the following URL: http://xxxx.xxxx:6673.