Last updated on 10 October 2023
Please note if you are using DSM7.2 or higher you should use the Container Manager version of this guide from the menu.
This guide has reached the end of its updates as most people are now on the latest DSM update - This guide is correct as of 08/12/2023 however no further updates will be added.
|Amended the paths in line with the latest version of the guides
I have put together this quick guide to help pull updates for the GlueTUN VPN and any containers attached to it.
The Synology Docker UI does not support routing one container through another containers network connection and causes an error if you try to use standard update methods or Watchtower. So this little guide will get a script in place that you can either schedule or run manually.
Open up the Control Panel then ‘Task Scheduler’
Optional Step – Script Output
In order to see what your scheduled tasks are doing you can enable the Output Results within the Settings screen, you just need to select a folder to keep them in. I would create a subfolder in one of your shares.
Setting up the Script
Next you need to click on ‘Create’ > Scheduled Task > User-defined script
On the screen that now appears you can enter the details shown below.
You will see in this example I have unchecked the ‘Enabled’ option as this setup will be run manually, However if you would like to actually schedule this task to run at regular intervals you can leave this enabled.
- Task: ‘GlueTUN Update’
- User: ‘root’
- Enabled: Unchecked (Unless you want on a schedule)
On the ‘Schedule’ tab we will not be changing any options, however if you decided to have a regular update nightly this is where you will set it.
OK now we are on the final tab ‘Task Settings’
This is where you will need to copy and paste the code below into the User-defined Script box.
Please note the folders and names of the .yml files are based on the guides on this site, if you have different names or paths change them!
The script does the following.
- Stops and removes any containers specified within the associated .yml (your data is safe)
- Pulls the latest versions of each of those containers if available
- Once downloads are completed brings up all the associated containers within the .yml
qBittorrent Version – Copy below
docker-compose -f /volume1/docker/qbittorrentvpn.yml down
docker-compose -f /volume1/docker/qbittorrentvpn.yml pull
docker-compose -f /volume1/docker/qbittorrentvpn.yml up -d
Deluge Version – Copy below
docker-compose -f /volume1/docker/delugevpn.yml down
docker-compose -f /volume1/docker/delugevpn.yml pull
docker-compose -f /volume1/docker/delugevpn.yml up -d
Your task should look like below dependent on which code you copied
Press OK to be taken back to the Task Schedule menu.
You can now either manually run the script whenever you please or if you set it on a schedule this will commence once the time/day is hit.
That’s it all done
Buy Me a Coffee or a Beer
If you have found my site useful please consider pinging me a tip as it helps cover the cost of running things or just lets me get the odd beverage. Plus 10% goes to the devs of the apps I do guides for every year.