This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
lewis/ansible/roles/alerts/docker-compose.yml
2023-05-17 11:00:17 +02:00

29 lines
743 B
YAML

version: "3"
services:
ntfy:
image: binwiederhier/ntfy
ports:
- 3002:80
restart: always
command:
- serve
environment:
- TZ=Europe/Amsterdam
volumes:
- /mnt/backups/alerts/ntfy_cache:/var/cache/ntfy
- /mnt/backups/alerts/ntfy_data:/var/lib/ntfy
- /mnt/backups/alerts/ntfy_server.yml:/etc/ntfy/server.yml
healthcheck:
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
apprise:
image: caronc/apprise:v0.9.0
- 3003:8000
restart: always
volumes:
- /mnt/backups/alerts/apprise:/config