fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
921 stars 29 forks source link

docker-compose trigger #388

Open nanhoes opened 1 month ago

nanhoes commented 1 month ago

Please help me understand the use of the docker-compose trigger. I have a git repo of all my compose files on my server structured as /volume2/docker/{CONTAINER}/docker-compose.yml What i would like to do:

Is this how the trigger works? Here is my compose file with the intent to perform the trigger on the WUD compose file:

version: '3'

services:
  whatsupdocker:
    image: fmartinou/whats-up-docker:latest
    container_name: wud
    environment:
      - WUD_TRIGGER_DOCKERCOMPOSE_WUD_FILE=/docker/wud/docker-compose.yml
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /volume2/docker:/docker
    ports:
      - 3000:3000
    restart: unless-stopped

I have also tried mounting the compose file itself like this: /volume2/docker/wud/docker-compose.yml:/docker/wud/docker-compose.yml Neither config updates my container on a push to the repo. Is there anything else I need to add if this is possible? Thanks!