Synology Install Watchtower with Portainer

Synology Install Watchtower with Portainer

MyĀ previous guide for WatchtowerĀ involved the use ofĀ Task Scheduler. Today I’m offering a recommended and excellent alternative for installing the latest Watchtower version via Portainer. Watchtower is a Docker application that monitors your running containers for changes to the image. When an update is available in the Docker registry, Watchtower detects the changes and pulls down the new copy of the image. It will then restart the container using the new image and the same start options of the original, without you losing any data. I first installed Watchtower on my Synology DS720+ to take over part of my workload when it came to updating my self-hosted containers. For my peace of mind, I let Watchtower automate Docker image updates for all my containers that were not essential to my workflow. But for operations I could not afford to have halted even temporarily in case of a new image pull that came with breaking changes, I’ve decided to continue to oversee and manually update my more essential self-hosted containers. Separating operations like this can be an excellent working solution for anyone running Watchtower on their NAS. In this step by step guide I will show you how to install WatchtowerĀ on yourĀ Synology NAS using Docker & Portainer.āš ļøWarning: Watchtower will do upgrades of your docker containers automatically. This means that, if a docker image has a bug, it might destroy some containers you already have installed. For this reason, it is vital that you make Backups of your Docker folders using Hyper Backup.

šŸ’”Note: This guide works perfectly with the latest Watchtower v1.22.2 release.

šŸ’”Note: Check out my new guide on how to Install Watchtower on Your UGREEN NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

InstallĀ Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 3

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Home then click inside the local rectangle. Follow the instructions in the image below.

Portainer Add Stack NAS 2027

On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

Portainer Add Stack NAS 2

  • STEP 4

In the Name field type in watchtower. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

services:
  watchtower:
    image: nickfedor/watchtower:latest
    container_name: WATCHTOWER
    hostname: watchtower
    mem_limit: 512m
    mem_reservation: 128m
    cpu_shares: 512
    security_opt:
      - no-new-privileges=true
    read_only: true
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      TZ: Europe/Bucharest
      WATCHTOWER_CLEANUP: true # Remove old images after updating
      WATCHTOWER_REMOVE_VOLUMES: false # Remove attached volumes after updating
      DOCKER_API_VERSION: 1.41 # SSH docker version 1.41 for Docker engine version 20.10 - 1.43 for Docker engine version 24 - 1.45 for Docker engine version 26.1
      WATCHTOWER_INCLUDE_RESTARTING: true # Restart containers after update
      WATCHTOWER_INCLUDE_STOPPED: false # Update stopped containers
      WATCHTOWER_SCHEDULE: "0 0 */2 * * *" # Update & Scan containers every 2 hours
      WATCHTOWER_LABEL_ENABLE: false
      WATCHTOWER_ROLLING_RESTART: true #or false if you are using containers that have depends_on.
      WATCHTOWER_TIMEOUT: 30s
      WATCHTOWER_LOG_FORMAT: pretty
    restart: on-failure:5

Note: Before you paste the code above in the Web editor area below, change the value for TZĀ (Select your current Time Zone from this list).
Note: Before you paste the code above in the Web editor area below, change the value for DOCKER_API_VERSION. 1.41 is for Docker engine 20.10 – 1.43 is for Docker engine 24 – 1.45 for Docker engine 26.1. Check the exact version on the official Docker engine API websiteĀ or check the following screenshot to find it in Portainer.
Note: If you want, you can change some parameters in the code above such as the frequency with which your containers get scanned and updated. šŸ“Note: Check out the Explanation of the WATCHTOWER_SCHEDULE.

Watchtower Synology NAS Portainer Set up 11 new 2027

  • STEP 5

Scroll down on the page until you see a button namedĀ Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

Watchtower Synology NAS Portainer Set up 12 new 2026

  • STEP 6

If everything goes right, you will see the following message at the top right of your screen: ā€œSuccess Stack successfully deployedā€œ.

Portainer Success Stack NAS

šŸ’”Note: Watchtower does not have a graphical interface. To see which container was updated, you can check the logs for the Watchtower container. On the Portainer left sidebar, click Containers, then click the little log icon on the WATCHTOWER container.

Watchtower Synology NAS Portainer Set up 13 new 2027

After you click on the little log icon, you can see which container has been updated.

Watchtower Synology NAS Portainer Set up 14 new 2027

  • STEP 7

🟢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. I’ve been very honest about this aspect of my work since the beginning: I don’t run any ADS, I don’t require subscriptions, paid or otherwise, I don’t collect IPs, emails, and I don’t have any referral links from Amazon or other merchants. I also don’t have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. It’s something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.

Enjoy Watchtower!

šŸ†˜TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issuesĀ article.

Note: Can I run Docker on my Synology NAS?Ā See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find outĀ how to update the Watchtower container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Wednesday / September 23rd, 2026 at 2:50 AM

No sponsors, no corporations, no ads, no subscriptions, no membership tiers, no referral links, no pop-ups, no cookies, no tracking code. Just pure guides for the community from Marius.