You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
866 B
YAML

# docker-compose.yml
# Docker Hub: https://hub.docker.com/r/binwiederhier/ntfy
# The WebUI can be found at http://<HOST_IP>:<WEBUI_PORT>
networks:
<NETWORK_NAME>:
external: true
services:
ntfy:
command:
- serve
container_name: ntfy
environment:
- TZ=<TZ>
healthcheck: # optional: remember to adapt the host:port to your environment
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
image: binwiederhier/ntfy:<VERSION_TAG>
networks:
- <NETWORK_NAME>
ports:
- "80:80" # WebUI Port
restart: unless-stopped
user: "<PUID>:<PGID>"
volumes:
- ./server:/etc/ntfy
- ./user:/var/lib/ntfy
- ./cache:/var/cache/ntfy