Deploy Tubearchivist

Self-hosted YouTube archive: download, organize, and search your collection

Deploy Tubearchivist

Just deployed

/data

Just deployed

Just deployed

/cache

Just deployed

/usr/share/elasticsearch/data

Deploy and Host TubeArchivist on Railway

Deploy on Railway

Self-hosted YouTube media archive server — save, organize, and search your YouTube collection. TubeArchivist downloads videos with metadata, subtitles, and comments, then indexes everything in Elasticsearch for fast full-text search, all behind a clean responsive web UI.

About Hosting TubeArchivist

This Railway template deploys the full TubeArchivist stack: the Django + Celery + nginx main app, Elasticsearch 8.19 for search and metadata indexing, Redis 7.4 for the task queue, and a POT-token provider companion that keeps yt-dlp downloads working from datacenter IPs where YouTube's bot checks would otherwise stall them. All services talk over Railway private networking, and media persists on the main service's 50GB volume. First start takes a few minutes while Elasticsearch initializes its index; after that, log in with the generated credentials and add channels or video URLs to start archiving.

Why Deploy TubeArchivist on Railway?

  • Own your archive — videos land on your own persistent volume, immune to channel deletions, region blocks, or YouTube account loss.
  • Full-text search — Elasticsearch indexes titles, descriptions, subtitles, and comments across your whole library.
  • Automated downloading — subscribe to channels and playlists; new uploads are fetched automatically (or on-demand for single videos).
  • Bot-detection resistant — ships with a built-in POT-token provider companion so yt-dlp downloads don't stall on YouTube's "confirm you're not a bot" checks on datacenter IPs.

Common Use Cases

  • Personal YouTube archiving: mirror channels and playlists you follow
  • Offline media server: play archived videos from any browser
  • Research and content-preservation projects requiring searchable archives
  • Automated channel monitoring with scheduled rescans and downloads

Dependencies for TubeArchivist Hosting

You can configure the deployment using the following environment variables (all internal wiring is pre-configured by the template):

VariableDescriptionDefault
TA_USERNAMEInitial admin usernametubearchivist
TA_PASSWORDInitial admin password (auto-generated)generated
ELASTIC_PASSWORDElasticsearch password (shared with ES service)generated
TA_HOSTPublic URL of this serviceauto-set from Railway domain
ES_URLElasticsearch connection URLauto-set from ES companion
REDIS_CONRedis connection URLauto-set from Redis companion
POT_PROVIDER_URLPOT-token provider for yt-dlpauto-set from POT companion
TA_MEDIA_DIRMedia directory inside the volume/cache/youtube
TA_AUTO_UPDATE_YTDLPAuto-update yt-dlp (release/nightly/disabled)release
TZTimezone (IANA name)UTC

Deployment Dependencies

This template deploys four services:

  1. tubearchivist — main app (Django + Celery + nginx), 50GB persistent volume at /cache
  2. tubearchivist-es — Elasticsearch 8.19 (search + metadata index), volume at /usr/share/elasticsearch/data
  3. tubearchivist-redis — Redis 7.4 (task queue + cache), volume at /data
  4. tubearchivist-pot — POT-token provider (bgutil-ytdlp-pot-provider) that keeps yt-dlp downloads working from datacenter IPs

Credentials (TA_PASSWORD, ELASTIC_PASSWORD) are auto-generated per deploy and shared between the main app and Elasticsearch via template references — no manual wiring needed.

Implementation Details

In Railway, after deploying the template:

  • Log in with the generated TA_USERNAME/TA_PASSWORD
  • Import a YouTube cookie in Settings → Applications if downloads hit bot detection even with the POT provider active (datacenter IPs sometimes require both)
  • For heavy archiving, monitor disk usage in the Railway dashboard and increase the volume size as needed

Features

  • Archive YouTube videos, channels, and playlists with metadata + subtitles
  • Full-text search via Elasticsearch
  • Automatic channel/playlist subscription monitoring
  • Tagging, download queue, and playlist management
  • Mobile-responsive web interface
  • Built-in POT-token provider keeps downloads working on datacenter IPs

License

GPLv3 — TubeArchivist License


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
45
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51