| 1 |
# ntfy server for local E2E testing |
| 2 |
# |
| 3 |
# https://hub.docker.com/r/binwiederhier/ntfy |
| 4 |
# |
| 5 |
# Usage: |
| 6 |
# docker compose up -d |
| 7 |
# |
| 8 |
# API endpoint: http://localhost:8080 |
| 9 |
# |
| 10 |
# Note: No authentication is configured for local testing. |
| 11 |
|
| 12 |
services: |
| 13 |
ntfy: |
| 14 |
image: binwiederhier/ntfy:latest@sha256:6ef4b819f722fccdc036af611c4774cfdc2de821ab74fdd48bbf4c9d6f8973da |
| 15 |
container_name: ntfy |
| 16 |
command: |
| 17 |
- serve |
| 18 |
- --visitor-request-limit-exempt-hosts=localhost,127.0.0.1,::1 |
| 19 |
ports: |
| 20 |
- "8080:80" |
| 21 |
volumes: |
| 22 |
- ./data:/var/cache/ntfy |
| 23 |
healthcheck: |
| 24 |
test: [ "CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1" ] |
| 25 |
interval: 30s |
| 26 |
timeout: 10s |
| 27 |
retries: 5 |
| 28 |
start_period: 40s |
| 29 |
restart: unless-stopped |