35 lines
941 B
Markdown
35 lines
941 B
Markdown
**Purpose**: ntfy (pronounced notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, and/or using a REST API. It's infinitely flexible, and 100% free software.
|
|
|
|
```jsx title="docker-compose.yml"
|
|
version: "2.1"
|
|
services:
|
|
ntfy:
|
|
image: binwiederhier/ntfy
|
|
container_name: ntfy
|
|
command:
|
|
- serve
|
|
environment:
|
|
- TZ=America/Denver # optional: Change to your desired timezone
|
|
#user: UID:GID # optional: Set custom user/group or uid/gid
|
|
volumes:
|
|
- /srv/containers/ntfy/cache:/var/cache/ntfy
|
|
- /srv/containers/ntfy/etc:/etc/ntfy
|
|
ports:
|
|
- 80:80
|
|
restart: unless-stopped
|
|
networks:
|
|
docker_network:
|
|
ipv4_address: 192.168.5.45
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: docker_network
|
|
docker_network:
|
|
external: true
|
|
```
|
|
|
|
```jsx title=".env"
|
|
Not Applicable
|
|
```
|