Please help with Watchtower and Docker Compose

Hello.

Help set up so that Watchtower updates only the StorjNode container. I have them running in different Docker Compose stacks.

Here is the Watchtower code:

version: "3.7"
services:
   
  watchtower:
    container_name: watchtower
    image: storjlabs/watchtower
    environment:
      - TZ=Europe/Moscow
      - WATCHTOWER_LABEL_ENABLE
    deploy:
     labels:
      com.centurylinklabs.watchtower.enable: "true"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: always

Here is the Storj coposer code:

version: "3.5"

services:
  storj:
    container_name: storagenode
    image: storjlabs/storagenode:latest
    ports:
       - "28967:28967/udp"
       - "28967:28967/tcp"
       - 14002:14002
       - 14003:7778
    environment:
      - TZ=Europe/Moscow
      - STORAGE=500GB
    deploy:
     labels:
      com.centurylinklabs.watchtower.enable: "true"
    volumes:
      - type: bind
        source: /storj-iscsi/storage_ntfs/identity/storagenode
        target: /app/identity
      - type: bind
        source: /storj-iscsi/storage_ntfs/storage
        target: /app/config
      - type: bind
        source: /var/log/storjnode.log
        target: /app/config/node.log

    restart: always
   

For some reason, Watchtower skipped the latest version and did not update the container. What could be wrong?

Hello @hatred ,
Welcome to the forum!

The storagenode container will update itself. The watchtower updates only the base image.
Now the storagenode image have an integrated updater.
Please check your logs from storagenode container

docker logs storagenode 2>&1 | grep storagenode-updater | tail

I have nothing in logs reagarding storagenode-updater.
I am running v 1.55.1. is it latest release?

Yes, the 1.56.4 is rolled out right now.
Regarding logs - you should have the update information in docker logs, even if you redirected logs of storagenode.

Oh, thanks. I see message:

New version is being rolled out but hasn't made it to this node yet	{"Process": "storagenode-updater", "Service": "storagenode"}

What is it mean?

Your node is not eligible to update. We updating by waves to do not shutdown the whole network during update.
You just need to wait.

Oh, thank you. Can I shutdown Watchtower container? I don’t need automatic updates.