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
1.1k stars 35 forks source link

Working with several docker compose #329

Open lordraiden opened 11 months ago

lordraiden commented 11 months ago

I have around 10 docker compose files with containers that I want to update According to the documentation https://fmartinou.github.io/whats-up-docker/#/configuration/triggers/docker-compose/

Do I need to run a whats-up-docker instance for each docker compose? is there a way to update all of them from a single instance?

fmartinou commented 10 months ago

Hi,

In theory, configuring multiple "docker-compose triggers" should work 🤞.

lordraiden commented 10 months ago

Hi,

In theory, configuring multiple "docker-compose triggers" should work 🤞.

I'm trying to make it work.

I want to monitor only an update 2 docker compose files "monitoring" and "administration" I have this compose and I have added "wud.watch: "true"" label to the 2 compose I want to monitor only. Instead I get all my dockers and no triggers imagen

What I'm doing wrong?

  whatsupdocker:
    image: fmartinou/whats-up-docker
    container_name: WhatsUpDocker
    <<: *config
    networks:
      eth1:
        ipv4_address: ${whatsupdocker_ip}
    environment:
      - TZ      
      - WUD_WATCHER_LOCAL_SOCKET=/var/run/docker.sock
     # - WUD_WATCHER_{watcher_name}_PORT
     # - WUD_WATCHER_{watcher_name}_HOST
      - WUD_TRIGGER_DOCKERCOMPOSE_MONITORING=/wud/docker-compose-monitoring.yml
      - WUD_TRIGGER_DOCKERCOMPOSE_MONITORING_PRUNE=true
      - WUD_TRIGGER_DOCKERCOMPOSE_ADMINISTRATION=/wud/docker-compose-administration.yml
      - WUD_TRIGGER_DOCKERCOMPOSE_ADMINISTRATION_PRUNE=true
    #  - WUD_WATCHER_LOCAL_CRON=0 1 * * *
      - WUD_WATCHER_LOCAL_WATCHBYDEFAULT=false
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /mnt/services/docker/Whats-up-docker:/store
      - /mnt/services/docker/docker-compose/Monitoring/docker-compose.yml:/wud/docker-compose-monitoring.yml
      - /mnt/services/docker/docker-compose/Administration/docker-compose.yml:/wud/docker-compose-administration.yml
    ports:
      - 3000:3000
    labels:
      <<: *labels
      net.unraid.docker.icon: "https://i.imgur.com/eIUvk2Y.png"
      net.unraid.docker.webui: "http://${whatsupdocker_ip}:3000/"

Is complaining about the yml file..--

18:13:02.165  INFO whats-up-docker: What's up Docker? is starting (version = latest)
18:13:02.166  INFO whats-up-docker/store: Load store from (/store/wud.json)
18:13:02.177  INFO whats-up-docker/prometheus: Init Prometheus module
18:13:02.216  INFO whats-up-docker/registry: Register all components of kind trigger for provider dockercompose
18:13:02.493  WARN whats-up-docker/registry: Some triggers failed to register (Error when registering component dockercompose ("file" is required))
18:13:02.631  INFO whats-up-docker/registry.ecr: Register with configuration {}
18:13:02.632  INFO whats-up-docker/registry.gcr: Register with configuration {}
18:13:02.633  INFO whats-up-docker/registry.ghcr: Register with configuration {}
18:13:02.634  INFO whats-up-docker/registry.hotio: Register with configuration {}
18:13:02.635  INFO whats-up-docker/registry.hub: Register with configuration {}
18:13:02.636  INFO whats-up-docker/registry.quay: Register with configuration {}
18:13:02.717  INFO whats-up-docker/watcher.docker.local: Register with configuration {"socket":"/var/run/docker.sock","watchbydefault":false,"port":2375,"cron":"0 * * * *","watchall":false,"watchevents":true}
18:13:02.717  INFO whats-up-docker/watcher.docker.local: Cron scheduled (0 * * * *)
18:13:02.721  INFO whats-up-docker/registry: No authentication configured => Allow anonymous access
18:13:02.723  INFO whats-up-docker/authentication.anonymous.anonymous: Register with configuration {}
18:13:02.726  WARN whats-up-docker: Anonymous authentication is enabled; please make sure that the app is not exposed to unsecure networks
18:13:02.733  INFO whats-up-docker/api: Server listening on port 3000 (HTTP)
18:13:03.721  INFO whats-up-docker/watcher.docker.local: Cron started (0 * * * *)
18:13:03.727  INFO whats-up-docker/watcher.docker.local: Listening to docker events
18:13:03.766  WARN whats-up-docker: local_Code-server - No Registry Provider found
18:13:03.775  WARN whats-up-docker/watcher.docker.local: Error when processing (Unsupported Registry unknown) (container=local_Code-server)
18:13:04.469  WARN whats-up-docker/watcher.docker.local: Error when processing (429 - {"errors":[{"code":"TOOMANYREQUESTS","message":"You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"}]}) (container=local_WhatsUpDocker)
18:13:04.470  WARN whats-up-docker/watcher.docker.local: Error when processing (429 - {"errors":[{"code":"TOOMANYREQUESTS","message":"You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"}]}) (container=local_ProxyDMZ-DDNSUpdater)
18:13:04.472  WARN whats-up-docker/watcher.docker.local: Error when processing (429 - {"errors":[{"code":"TOOMANYREQUESTS","message":"You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit"}]}) (container=local_QDirStat)
18:13:07.302  INFO whats-up-docker/watcher.docker.local: Cron finished (5 containers watched, 4 errors, 0 available updates)
fmartinou commented 10 months ago

Hi,

There is an error with the FILE options.

=>

WUD_TRIGGER_DOCKERCOMPOSE_MONITORING_FILE=/wud/docker-compose-monitoring.yml
WUD_TRIGGER_DOCKERCOMPOSE_ADMINISTRATION_FILE=/wud/docker-compose-administration.yml