Skip to content

Tube Archivist in Container Manager on a Synology NAS

Important or Recent Updates
New guide released21/01/2024
Historic updates.

What is Tube Archivist?

To quote the GitHub page

Once your YouTube video collection grows, it becomes hard to search and find a specific video. That’s where Tube Archivist comes in: By indexing your video collection with metadata from YouTube, you can organize, search and enjoy your archived YouTube videos without hassle offline through a convenient web interface.

This includes:
– Subscribe to your favourite YouTube channels
– Download Videos using yt-dlp
– Index and make videos searchable
– Play videos
– Keep track of viewed and unviewed videos

Let’s Begin

In this guide I will take you through the steps to things up and running in Container Manager. We will be using the new Projects (Docker Compose) feature to get this running as it will save you time vs manual setup using the normal UI

If you have followed my other guides this one is a little different as there is not as much pre setup required just make sure you have followed these first.

Folder Setup

Let’s start by getting some folders set up for the containers to use. Open up File Station create the following.


Folder Permissions

Next we need to get under the covers with DSM and set some specific file permissions for a couple of the folders we just created. This is because the Redis and Elasticsearch containers only run as specific users and can’t be overridden, without this step Tube Archivist can’t start up.

Just like you did in the Docker User Setup guide you need to SSH into your NAS and then run the following commands in order to set the permissions. As we are doing this as the ‘root’ user you will be asked for your password the first time you run the command.

sudo chown 1000:0 /volume1/docker/tubearchivist/es

sudo chown 999:100 /volume1/docker/tubearchivist/redis

You will not see any output after each command and in File Station you should now see the permissions on the folders have changed.

Container Manager

Next we are going to set up a ‘Project’ in Container Manager. Open up Container Manager and click on Project then on the right-hand side click ‘Create’.

In the next screen we will set up our General Settings, enter the following:

Project Name:tubearchivist
Source:Create docker-compose.yml

Next we are going to drop in our docker compose configuration, copy all the code in the box below and paste it into line ‘1’ just like the screenshot.

    container_name: tubearchivist
    image: bbilly1/tubearchivist
      - 8000:8000/tcp
      - /volume1/data/media/youtube:/youtube
      - /volume1/docker/tubearchivist/cache:/cache
      - ES_URL=http://archivist-es:9200
      - REDIS_HOST=archivist-redis
      - TA_HOST= #Change to your NAS IP
      - TA_USERNAME=enter-a-username #Username for login
      - TA_PASSWORD=enter-a-password #password for login
      - ELASTIC_PASSWORD=enter-a-password # set password for Elasticsearch
      - TZ=Europe/London #CHANGE_TO_YOUR_TZ
      - archivist-es
      - archivist-redis
      test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
      interval: 2m
      timeout: 10s
      retries: 3
      start_period: 30s
      - no-new-privileges:true
    restart: always
    image: redis/redis-stack-server
    container_name: archivist-redis
      - "6379"
      - /volume1/docker/tubearchivist/redis:/data
      - archivist-es
      - no-new-privileges:true
    restart: always

    image: bbilly1/tubearchivist-es
    container_name: archivist-es
      - ES_JAVA_OPTS=-Xms512m -Xmx512m
      - discovery.type=single-node
      - path.repo=/usr/share/elasticsearch/data/snapshot
      - ELASTIC_PASSWORD=password-from-above #same password from above
        soft: -1
        hard: -1
      - /volume1/docker/tubearchivist/es:/usr/share/elasticsearch/data
      - "9200"
      - no-new-privileges:true
    restart: always

Environment Variables

We are now going to amend some key variables to make sure the containers have access to our folders, and also knows where we are in the world and set up some passwords. Don’t change any other settings other than those I mention.

You will notice that the compose has three main sections as it is made up of 3 containers which rely on each other to make the overall app work.

image: bbilly1/tubearchivist
(Main Tube Archivist container)

image: redis/redis-stack-server
(Redis database server)

image: bbilly1/tubearchivist-es
(Elasticsearch search and analytics engine)

Let’s change the settings for them one at a time.


HOST_UID(required) The UID you obtained in the user setup guide
HOST_GID(required) The GID you obtained in the user setup guide
TA_HOSTEnter your NAS IP Address here
TA_USERNAMECreate a username for your login
TA_PASSWORDCreate a password for your login
ELASTIC_PASSWORDCreate a different password for the Elastic Search container
TZ(required) Your timezone


No amendments required


ELASTIC_PASSWORDThe same elastic password from the section above

Once you have made the edits you can click ‘Next’

You do not need to enable anything on the ‘Web portal settings’ screen click ‘Next’ again.

On the final screen click ‘Done’ which will begin the download of the container images and once downloaded they will be launched!

The image will now be downloaded and extracted. You should see ‘Code 0’ when it has finished.

The first ever start up can take a few minutes so be patient while everything sets up, so in the interim continue below.

Firewall Exceptions

(Skip if you don’t have the Firewall configured)

If you have enabled and configured the Synology Firewall you will need to create exceptions for any containers that have a Web UI or have any incoming or outgoing connections. This section covers the basics of how to add these. (Please note this is a generic section and will not show the specific ports used in this guide however it applies in the same way)

Also, I would like to refer people to the great guide on getting the Firewall correctly configured over on WunderTechs site.

Head into the Control Panel> Security > Firewall, from here click Edit Rules for the profile you set up when you enabled the Firewall.

Next click on Create and you will see the screen below. Source IP and Action will be automatically selected to All and Allow, I will leave it up to you as to your own preference on whether you want to lock down specific Source IPs from having access. In this example we will leave as All.

You will now choose ‘Custom‘ and then the Custom button

Now select Destination from the drop-down menu, most web based containers require TCP access but check the guide as it will show the port and protocol. Then add comma separated ports. Then press OK.

Click OK a couple of times to get back to the main screen. You will see by default the new rule is added to the bottom of the list. You must always have your Block All rule last in the list as the rules are applied top down so move your container up.

You have now completed the Firewall changes and can continue with the guide.

Some final steps

Tube Archivist will now be running and can be found on port 8000 on your NAS IP


You should be able to log in using the Username and Password you set up in the yaml earlier

There are no other changes we need to make to the default configuration, however you can go in and make changes to your preferences.

Some key things I have found from a UI perspective.

Channels, probably fairly obvious but add the URLs for full channels you want to subscribe to in this section, you can configure Archivist to then download all the back catalogue and future videos.

Downloads, I use this to grab individual videos using the + button on the right-hand side.

Make sure you have a look at the documentation over on the Tube Archivist site.

Browser Extension

Looking for some help, join our Discord community

If you are struggling with any steps in the guides or looking to branch out into other containers join our Discord community!

Buy me a beverage!

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 stay hydrated. Plus 10% goes to the devs of the apps I do guides for every year.

Published inDockerMedia Management 7.2Synology


  1. Phantom Phantom

    I can’t get it to work. Port 8000 is in use by file station so that installation goes to code 1. I changed ports to 8005 and all looks good but I can’t connect. After a few minutes the message failed to connect on localhost port 8005 after 0ms.

    • Dr_Frankenstein Dr_Frankenstein

      Ahh OK – Just amend the left-hand port in the compose as its the one exposed to your network, leave the right have internal 8000 port

  2. radiocaf radiocaf

    How would one make this accessible via Tailscale? I specified the NAS’s internal IP (192.168…) as the hostname when creating the YML but that causes any attempt to access via Tailscale to return a “Bad Request (400).” Any ideas?

  3. Chris Mannix Chris Mannix

    Should Gluetun VPN be setup and used to download from Tube Archivist? I dont believe there is a SSL connection here, unless I am missing something… seems like ISPs can see what you are downloading.

    • Dr_Frankenstein Dr_Frankenstein

      Hey – There is no SSL on you local network but the connection to youtube will be.

  4. Curious George Curious George

    Does this work for “subscriber” videos? Have a few industry people I follow that I’d love to have their backlog to watch without paying every month.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed. – writing Synology Docker Guides since 2016 – Join My Discord!