| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
services: |
| 13 |
ntfy: |
| 14 |
image: binwiederhier/ntfy:latest@sha256:f2419f405127afa868f10985c1a41449e673477cee1eb19994339a5ae8b592e7 |
| 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 |