mirror of
https://github.com/tomasriveral/vps-config.git
synced 2026-08-12 02:28:38 +02:00
setup ntfy config
This commit is contained in:
+10
-9
@@ -3,6 +3,10 @@ services:
|
|||||||
caddy:
|
caddy:
|
||||||
depends_on:
|
depends_on:
|
||||||
- archivebox
|
- archivebox
|
||||||
|
- freshrss
|
||||||
|
- filebrowser
|
||||||
|
- uptime-kuma
|
||||||
|
- ntfy
|
||||||
image: caddy:latest
|
image: caddy:latest
|
||||||
container_name: caddy
|
container_name: caddy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -27,8 +31,6 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
command: server 0.0.0.0:8000
|
command: server 0.0.0.0:8000
|
||||||
ports:
|
|
||||||
- "8000:8000"
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Zurich
|
- TZ=Europe/Zurich
|
||||||
|
|
||||||
@@ -44,9 +46,6 @@ services:
|
|||||||
container_name: freshrss
|
container_name: freshrss
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
ports:
|
|
||||||
- "8080:80"
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Zurich
|
- TZ=Europe/Zurich
|
||||||
- CRON_MIN=*/20
|
- CRON_MIN=*/20
|
||||||
@@ -58,8 +57,6 @@ services:
|
|||||||
image: filebrowser/filebrowser:latest
|
image: filebrowser/filebrowser:latest
|
||||||
container_name: filebrowser
|
container_name: filebrowser
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- "8081:80"
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Zurich
|
- TZ=Europe/Zurich
|
||||||
@@ -80,8 +77,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /opt/server/uptime-kuma:/app/data
|
- /opt/server/uptime-kuma:/app/data
|
||||||
|
|
||||||
ports:
|
|
||||||
- "3001:3001"
|
|
||||||
ntfy:
|
ntfy:
|
||||||
image: binwiederhier/ntfy:latest
|
image: binwiederhier/ntfy:latest
|
||||||
container_name: ntfy
|
container_name: ntfy
|
||||||
@@ -89,13 +84,19 @@ services:
|
|||||||
|
|
||||||
command:
|
command:
|
||||||
- serve
|
- serve
|
||||||
|
- --config
|
||||||
|
- /etc/ntfy/server.yml
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- TZ=Europe/Zurich
|
- TZ=Europe/Zurich
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
# Persistent database, cache, attachments
|
||||||
- /opt/server/ntfy:/var/cache/ntfy
|
- /opt/server/ntfy:/var/cache/ntfy
|
||||||
|
|
||||||
|
# Server configuration
|
||||||
|
- /home/tomasr/vps-config/ntfy-config/server.yml:/etc/ntfy/server.yml:ro
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:80/v1/health | grep -q 'healthy'"]
|
test: ["CMD-SHELL", "wget -q --tries=1 -O- http://localhost:80/v1/health | grep -q 'healthy'"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
base-url: "https://ntfy.tomasrivera.ch"
|
||||||
|
|
||||||
|
auth-file: "/var/cache/ntfy/user.db"
|
||||||
|
auth-default-access: "deny-all"
|
||||||
|
|
||||||
|
attachment-cache-dir: "/var/cache/ntfy/attachments"
|
||||||
Reference in New Issue
Block a user