watchtower icon indicating copy to clipboard operation
watchtower copied to clipboard

Mqtt support

Open DeltaTango69 opened this issue 8 months ago • 3 comments

Describe the bug

Gemini or chatgpt gives me following configuration for MQTT messages for example for Homeassistant.

version: '3'
services:
  watchtower:
    image: containrrr/watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WATCHTOWER_NOTIFICATION_MQTT_ENABLE=true
      - WATCHTOWER_NOTIFICATION_MQTT_BROKER_HOST=DEINE_MQTT_BROKER_IP
      - WATCHTOWER_NOTIFICATION_MQTT_BROKER_PORT=1883 # Standard MQTT Port, ggf. anpassen
      - WATCHTOWER_NOTIFICATION_MQTT_BROKER_USERNAME=DEIN_MQTT_USERNAME # Optional
      - WATCHTOWER_NOTIFICATION_MQTT_BROKER_PASSWORD=DEIN_MQTT_PASSWORT # Optional
      - WATCHTOWER_NOTIFICATION_MQTT_TOPIC=watchtower/events
      - WATCHTOWER_NOTIFICATION_MQTT_CLIENT_ID=watchtower-$(hostname) # Optional, erzeugt eine eindeutige Client-ID
      - WATCHTOWER_NOTIFICATION_MQTT_TLS_ENABLE=false # Optional, für TLS-Verschlüsselung
      # - WATCHTOWER_NOTIFICATION_MQTT_TLS_CA_CERTS=/path/to/ca.crt # Optional, Pfad zum CA-Zertifikat
    command: deine_container_namen_oder_alle --interval 300 # Beispiel: alle 5 Minuten prüfen
    restart: unless-stopped

But I find no official support for that. Also it is not working?! Was this implemented before and not more yet?

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Mqtt support

Screenshots

No response

Environment

  • Platform
  • Architecture
  • Docker Version

Your logs

.

Additional context

No response

DeltaTango69 avatar Apr 05 '25 17:04 DeltaTango69

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Apr 05 '25 17:04 github-actions[bot]

Watchtower doesn't support MQTT directly, but it does support notifications through Shoutrrr. In theory, MQTT support could be added there via a pull request: containrrr/shoutrrr. However, the project appears to be mostly inactive, so it might be unlikely that such a feature would be accepted or maintained.

Toaster2-0 avatar Jul 24 '25 23:07 Toaster2-0

Watchtower doesn't support MQTT directly, but it does support notifications through Shoutrrr. In theory, MQTT support could be added there via a pull request: containrrr/shoutrrr. However, the project appears to be mostly inactive, so it might be unlikely that such a feature would be accepted or maintained.

Maybe give https://github.com/nicholas-fedor/watchtower a try? It's very active maintained.

waja avatar Jul 25 '25 05:07 waja