Accès
- Ouvrez l'interface web de Gotify :
http://<SERVER-IP> - Les identifiants administrateur sont stockés dans :
/root/gotify/.env - Changez le mot de passe administrateur depuis l'interface web après la première connexion.
Envoi de messages
Créer une application
- Ouvrez l'interface web de Gotify.
- Create an Application.
- Copiez le jeton d'application généré.
Envoyer un message
curl -X POST 'http://<SERVER-IP>/message?token=<APP_TOKEN>' \
-F 'title=Hello' \
-F 'message=world' \
-F 'priority=5'
Les clients peuvent s'abonner aux notifications en direct via : /stream
Fichiers et répertoires importants
- Chemin d'installation :
/root/gotify - Fichier Compose :
/root/gotify/docker-compose.yml - Fichier d'environnement :
/root/gotify/.env - Volume de données Docker :
/var/lib/docker/volumes/gotify_gotify_data
Gestion de Docker
Afficher l'état :
cd /root/gotify
docker compose ps
Voir les logs :
cd /root/gotify
docker compose logs -f
Redémarrer Gotify :
cd /root/gotify
docker compose restart
Arrêter Gotify :
cd /root/gotify
docker compose down
Démarrez Gotify :
cd /root/gotify
docker compose up -d