Docker compose
Docker compose
version: '3'
services:
ntfy:
image: binwiederhier/ntfy
restart: unless-stopped
environment:
NTFY_BASE_URL: https://your-domain.io
NTFY_BEHIND_PROXY: true
NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments
NTFY_CACHE_FILE: /var/lib/ntfy/cache.db
NTFY_UPSTREAM_BASE_URL: https://ntfy.sh
volumes:
- ./:/var/lib/ntfy
ports:
- 4280:80
command: serve
NTFY_BEHIND_PROXY: true
use it if you are behind a proxy or if you use cloudflare to register your DNS
NTFY_UPSTREAM_BASE_URL: https://ntfy.sh
is used to push the notification on IOS
4280:80
redirect the host's port 4280 to the port 80 of the container