Files
ntfy/README.MD
2025-12-20 13:10:39 -06:00

45 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Installation
``` yaml
version: '3'
services:
  ntfy:
    image: binwiederhier/ntfy
    restart: always
    environment:
      NTFY_BASE_URL: https://ntfy.speerfam.net
      NTFY_CACHE_FILE: /var/lib/ntfy/cache.db
      NTFY_AUTH_FILE: /var/lib/ntfy/auth.db
      NTFY_AUTH_DEFAULT_ACCESS: deny-all
      NTFY_BEHIND_PROXY: true
      NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments
      NTFY_ENABLE_LOGIN: true
      NTFY_UPSTREAM_BASE_URL: https://ntfy.sh
      NTFY_WEB_PUSH_FILE: /var/lib/ntfy/webpush.db
      NTFY_WEB_PUSH_EMAIL_ADDRESS: <email>
      TZ: America/Chicago
      PID: 1000
      GID: 1000
    volumes:
      - /home/mattspeer/docker/ntfy:/var/lib/ntfy
      - /home/mattspeer/docker/ntfy/cache:/var/cache/ntfy
      - /home/mattspeer/docker/ntfy/config:/etc/ntfy
    ports:
      - 8085:80
    command: serve
```
# Users & Roles
``` bash
ntfy user list                     # Shows list of users (alias: 'ntfy access')
ntfy user add phil                 # Add regular user phil  
ntfy user add --role=admin phil    # Add admin user phil
ntfy user del phil                 # Delete user phil
ntfy user change-pass phil         # Change password for user phil
ntfy user change-role phil admin   # Make user phil an admin
ntfy user change-tier phil pro     # Change phil's tier to "pro"
```
## Backup
All configuration in this deployment is contained in the compose yaml. Otherwise, it would be in `/etc/ntfy/server.yml` on the container's file system.