Setup ntfy
Overview
ntfy (pronounced "notify") is a simple HTTP-based pub-sub notification service. With ntfy, you can send notifications to your phone or desktop via scripts from any computer, without having to sign up or pay any fees. If you'd like to run your own instance of the service, you can easily do so since ntfy is open source.
Important Docker Files
.env file
.env
NAME=ntfy
TZ=EST
DOMAIN=
APPDATA=
PORT=80
docker-compose.yml file
docker-compose.yml
services:
ntfy:
image: binwiederhier/ntfy
container_name: ${NAME}
command: serve
environment:
TZ: ${TZ}
volumes:
- ${APPDATA}/${NAME}/cache:/var/cache/ntfy
- ${APPDATA}/${NAME}/config:/etc/ntfy
restart: always
networks:
- proxy
labels:
swag: enable
swag_address: ${NAME}
swag_port: ${PORT}
swag_proto: http
swag_url: ${NAME}.${DOMAIN}
com.centurylinklabs.watchtower.enable: true
networks:
proxy:
external: true
Start the Container
Start the Container
docker compose up -d