Skip to content

Commit

Permalink
ntfy smtp listener
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Jan 21, 2025
1 parent 3adf235 commit 1de0063
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ntfy/docker-compose.ports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
ntfy:
ports:
- ${SERVER_WAN_BINDING_IP:?}:${NTFY_SMTP_LISTEN_PORT:?}:${NTFY_SMTP_LISTEN_PORT:?}
9 changes: 6 additions & 3 deletions ntfy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ services:
- ./data/ntfy/var/lib/ntfy:/var/lib/ntfy

environment:
NTFY_BASE_URL: "https://${SERVER_WAN_FQDN:?}:${SERVER_WAN_HTTPS_PORT:?}"
NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments
NTFY_AUTH_FILE: /var/lib/ntfy/auth.db
NTFY_AUTH_DEFAULT_ACCESS: deny-all
NTFY_AUTH_FILE: /var/lib/ntfy/auth.db
NTFY_BASE_URL: "https://${SERVER_WAN_FQDN:?}:${SERVER_WAN_HTTPS_PORT:?}"
NTFY_BEHIND_PROXY: true
NTFY_CACHE_FILE: /var/lib/ntfy/cache.db
NTFY_ENABLE_SIGNUP: false
NTFY_ENABLE_LOGIN: true
NTFY_ENABLE_SIGNUP: false
NTFY_WEB_ROOT: "/${NTFY_BASE_PATH}"
NTFY_SMTP_SERVER_ADDR_PREFIX: "ntfy-"
NTFY_SMTP_SERVER_DOMAIN: "${SERVER_WAN_FQDN:?}"
NTFY_SMTP_SERVER_LISTEN: ":${NTFY_SMTP_LISTEN_PORT:?}"
TZ: ${TZ:?}

healthcheck:
Expand Down
1 change: 1 addition & 0 deletions ntfy/static.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NTFY_VERSION=v2.11.0
NTFY_BASE_PATH=ntfy
NTFY_SMTP_LISTEN_PORT=25

0 comments on commit 1de0063

Please sign in to comment.