33800 Docs

← Retour

Proposition : Fix notif-logger réseau Docker

Date : 22/01/2026 11:27 Status : IMPLEMENTEE Priorité : HAUTE (notifications cassées)

Problème

notif-logger déployé via Smart-Deploy crée son propre réseau notif-logger-network, mais il doit communiquer avec apprise qui est sur le réseau notifications_notifications.

Résultat : Toutes les notifications push échouent avec "Unable to connect".

Fix temporaire appliqué

docker network connect notifications_notifications notif-logger

Ce fix est perdu au prochain redémarrage du container.

Solution permanente

Ajouter conf.gouroubleu.yml au projet notif-logger sur GitLab avec le réseau externe notifications_notifications :

# conf.gouroubleu.yml
project: notif-logger
version: "1.0"

deploy:
  target: prod-portainer
  strategy: simple

docker:
  port: 5300
  network: notifications_notifications
  network_external: true
  env:
    PORT: "5300"
    APPRISE_URL: "http://apprise:8000"
  env_file: /mnt/stock_8to/33800-stack/docker/secrets/prod.env
  healthcheck:
    endpoint: /health
    interval: 30

nginx:
  domain: notif-logger.33800.nowhere84.com
  target: prod-portainer
  port: 5300

Prérequis : Le réseau notifications_notifications doit exister (créé par la stack ntfy+apprise).

Actions

  1. Cloner le repo notif-logger localement
  2. Ajouter conf.gouroubleu.yml
  3. Commit + push vers GitLab
  4. La pipeline Smart-Deploy redéploiera avec le bon réseau

Alternative

Ne pas utiliser Smart-Deploy pour notif-logger et garder le déploiement groupé avec ntfy/apprise dans /mnt/stock_8to/33800-stack/docker/stacks/notifications/docker-compose.yml.

Mais cela empêcherait le déploiement automatique via CI/CD lors des modifications du code.