Last active 1740234105

A simple HTTP-based pub-sub notification service. With ntfy, you can send notifications to your phone or desktop via scripts from any computer.

emanuelegori's Avatar emanuelegori revised this gist 1740234105. Go to revision

1 file changed, 1 insertion, 8 deletions

docker-compose.yml

@@ -27,11 +27,4 @@ services:
27 27 timeout: 10s
28 28 retries: 3
29 29 start_period: 40s
30 - networks:
31 - - npm-internal
32 - restart: unless-stopped
33 -
34 - networks:
35 - npm-internal:
36 - name: npm-internal
37 - external: true
30 + restart: unless-stopped

emanuelegori's Avatar emanuelegori revised this gist 1733252382. Go to revision

1 file changed, 37 insertions

docker-compose.yml(file created)

@@ -0,0 +1,37 @@
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 + networks:
31 + - npm-internal
32 + restart: unless-stopped
33 +
34 + networks:
35 + npm-internal:
36 + name: npm-internal
37 + external: true
Newer Older