This commit is contained in:
@@ -27,7 +27,40 @@ Dans un homelab avec 8+ hôtes Docker, Gitea, Uptime Kuma et des dizaines de ser
|
||||
| Container qui crashe → logs Docker | "🐳 flowdeck exited OOMKilled on docker-prod-1" |
|
||||
| Script cron → email perdu | Résumé quotidien disque à 9h dans ta poche |
|
||||
|
||||
## Quick Start
|
||||
## Installation
|
||||
|
||||
### Docker (recommandé)
|
||||
|
||||
```bash
|
||||
# 1. Cloner le repo
|
||||
git clone https://git.dracodev.net/bruno/ntfy-bridge.git
|
||||
cd ntfy-bridge
|
||||
|
||||
# 2. Compiler le binaire Linux (cross-compilation depuis Windows/Mac)
|
||||
v -os linux -prod -o ntfy-bridge .
|
||||
|
||||
# Ou compiler directement sur Linux :
|
||||
# v -prod -o ntfy-bridge .
|
||||
|
||||
# 3. Configurer
|
||||
cp ntfy-bridge.example.yaml ntfy-bridge.yaml
|
||||
vim ntfy-bridge.yaml
|
||||
|
||||
# 4. Lancer avec docker compose
|
||||
docker compose up -d
|
||||
|
||||
# 5. Vérifier
|
||||
curl http://localhost:9090/health
|
||||
```
|
||||
|
||||
Le `docker-compose.yml` inclus monte :
|
||||
- `ntfy-bridge.yaml` → `/etc/ntfy-bridge/ntfy-bridge.yaml` (read-only)
|
||||
- `dashboard.html` → `/etc/ntfy-bridge/dashboard.html` (read-only)
|
||||
- Port `9090` exposé sur localhost
|
||||
- Variables d'environnement `NTFY_TOKEN` et `NTFY_HMAC_SECRET`
|
||||
- Healthcheck intégré (`/health`)
|
||||
|
||||
### Compilation manuelle
|
||||
|
||||
```bash
|
||||
# Installer V (si pas déjà fait)
|
||||
@@ -37,7 +70,7 @@ unzip /tmp/v.zip -d /tmp && sudo /tmp/v/v symlink
|
||||
# Compiler
|
||||
git clone https://git.dracodev.net/bruno/ntfy-bridge.git
|
||||
cd ntfy-bridge
|
||||
v .
|
||||
v -prod .
|
||||
|
||||
# Configurer
|
||||
cp ntfy-bridge.example.yaml ntfy-bridge.yaml
|
||||
|
||||
Reference in New Issue
Block a user