feat: added template + linting

This commit is contained in:
sujiba 2024-05-05 14:00:09 +02:00
parent e487af8136
commit dc5a9d3653
17 changed files with 79 additions and 53 deletions

View file

@ -1,8 +1,29 @@
# ntfy
After container startup place server.yml into volumes/ntfy:
```
mv server.yml voluems/ntfy
- [ntfy](#ntfy)
- [Directory structure](#directory-structure)
- [Config](#config)
docker compose restart
## Directory structure
```
/opt/docker/ntfy
.
├── docker-compose.yml
└── volumes
├── cache
└── ntfy
└── server.yml
```
## Config
```
# Edit ntfy config
vi server.yml
# Move file into ntfy directory
mv server.yml volumes/ntfy
# Start ntfy container
docker compose up -d
```

View file

@ -1,7 +1,7 @@
---
services:
# https://docs.ntfy.sh/install/#docker
ntfy:
# https://docs.ntfy.sh/install/#docker
image: binwiederhier/ntfy
container_name: ntfy
command:
@ -15,9 +15,9 @@ services:
ports:
- "127.0.0.1:11080:80"
healthcheck: # optional: remember to adapt the host:port to your environment
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:80/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"]
interval: 60s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped

View file

@ -167,7 +167,7 @@ attachment-cache-dir: /var/cache/ntfy/attachments
# ntfy webpush keys
web-push-public-key:
web-push-private-key:
web-push-file: /var/cache/ntfy/webpush.db
web-push-file: /var/cache/ntfy/webpush.db
web-push-email-address: hostmaster@exmaple.com
# web-push-startup-queries: