docker-compose.yml
· 1005 B · YAML
Raw
services:
ntfy:
image: binwiederhier/ntfy:latest
container_name: ntfy
command:
- serve
environment:
- TZ=Europe/Rome
- NTFY_BASE_URL=https://ntfy.emanuelegori.uno
- NTFY_CACHE_FILE=/var/lib/ntfy/cache.db
- NTFY_BEHIND_PROXY=true
- NTFY_ATTACHMENT_CACHE_DIR=/var/lib/ntfy/attachments
# - NTFY_UPSTREAM_BASE_URL=https://ntfy.sh # Optional if you need push notifications on iOS
- NTFY_AUTH_FILE=/var/lib/ntfy/auth.db
- NTFY_AUTH_DEFAULT_ACCESS=deny-all
- NTFY_ENABLE_LOGIN=false
- NTFY_WEB_ROOT=disable # Disable WebGui
volumes:
- ./cache-ntfy:/var/cache/ntfy
- ./etc-ntfy:/etc/ntfy
- ./ntfy:/var/lib/ntfy
# ports:
# - 9282:9292
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
restart: unless-stopped
| 1 | services: |
| 2 | ntfy: |
| 3 | image: binwiederhier/ntfy:latest |
| 4 | container_name: ntfy |
| 5 | command: |
| 6 | - serve |
| 7 | environment: |
| 8 | - TZ=Europe/Rome |
| 9 | - NTFY_BASE_URL=https://ntfy.emanuelegori.uno |
| 10 | - NTFY_CACHE_FILE=/var/lib/ntfy/cache.db |
| 11 | - NTFY_BEHIND_PROXY=true |
| 12 | - NTFY_ATTACHMENT_CACHE_DIR=/var/lib/ntfy/attachments |
| 13 | # - NTFY_UPSTREAM_BASE_URL=https://ntfy.sh # Optional if you need push notifications on iOS |
| 14 | - NTFY_AUTH_FILE=/var/lib/ntfy/auth.db |
| 15 | - NTFY_AUTH_DEFAULT_ACCESS=deny-all |
| 16 | - NTFY_ENABLE_LOGIN=false |
| 17 | - NTFY_WEB_ROOT=disable # Disable WebGui |
| 18 | volumes: |
| 19 | - ./cache-ntfy:/var/cache/ntfy |
| 20 | - ./etc-ntfy:/etc/ntfy |
| 21 | - ./ntfy:/var/lib/ntfy |
| 22 | # ports: |
| 23 | # - 9282:9292 |
| 24 | healthcheck: |
| 25 | test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] |
| 26 | interval: 60s |
| 27 | timeout: 10s |
| 28 | retries: 3 |
| 29 | start_period: 40s |
| 30 | restart: unless-stopped |