Initial commit: ntfy compose setup

This commit is contained in:
feldjaeger 2026-04-12 21:06:58 +02:00
parent 4098136326
commit 4109ae52ba
2 changed files with 3 additions and 6 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
data/ data/
config/
.env .env

View file

@ -3,16 +3,14 @@ services:
image: binwiederhier/ntfy:latest image: binwiederhier/ntfy:latest
container_name: ntfy container_name: ntfy
restart: unless-stopped restart: unless-stopped
command: serve
ports: ports:
- "80:80" - "8085:80"
environment: environment:
- NTFY_BASE_URL=http://10.4.1.110 - NTFY_BASE_URL=http://10.4.1.110:8085
- NTFY_UPSTREAM_BASE_URL=https://ntfy.sh
- NTFY_CACHE_FILE=/var/cache/ntfy/cache.db - NTFY_CACHE_FILE=/var/cache/ntfy/cache.db
- NTFY_UPSTREAM_ACCESS_TOKEN_FILE=/etc/ntfy/upstream_token
volumes: volumes:
- ./data:/var/cache/ntfy - ./data:/var/cache/ntfy
- ./config:/etc/ntfy
networks: networks:
- ntfy-net - ntfy-net