Deploy Tube Archivist

Self-hosted YouTube archive: download, index, search and watch videos

Deploy Tube Archivist

Just deployed

/data

Just deployed

/data

Just deployed

/usr/share/elasticsearch/data

Deploy and Host Tube Archivist on Railway

Tube Archivist is a self-hosted YouTube media server. You subscribe to channels and playlists or paste single videos, and it downloads them with yt-dlp, indexes titles, descriptions, comments and subtitles in Elasticsearch, and lets you search and watch your archive in a web player, offline and without ads.

About Hosting Tube Archivist

This template deploys three services on Railway's private network. Tube Archivist (v0.6.0) runs the web UI, the API and the download worker, and keeps downloaded videos, thumbnails and its user database on a volume at /data. Elasticsearch (9.5.5, the version upstream recommends) holds the search index and settings on its own volume, with a generated password. Redis holds the task queue. Both app services build from a public GitHub repo with images pinned by digest, so Railway offers you an update whenever we ship a new version. The admin account is created on first start with a generated password, and nothing is asked at deploy time.

Common Use Cases

  • Keep your own copy of channels and playlists that may be deleted or made private
  • Watch subscriptions offline in a clean, ad-free web player on any device
  • Search a growing video collection by title, description, comments or subtitles

Dependencies for Tube Archivist Hosting

  • Elasticsearch 8 or 9 with a password and path.repo set (included)
  • Redis (included)

Deployment Dependencies

Implementation Details

Services

ServiceWhat it doesVolume
Tube ArchivistWeb UI, API, yt-dlp download worker and scheduler (public URL, health check /api/health/)/data: videos, thumbnails, SQLite users, backups
ElasticsearchSearch index, download queue, app settings (private only)/usr/share/elasticsearch/data
RedisTask queue and cache (private only)/data

After deploy

  1. Open the Tube Archivist URL. Log in as admin with the TA_PASSWORD shown in the Tube Archivist service's Variables tab.
  2. YouTube blocks most cloud servers ("Sign in to confirm you're not a bot"). Before your first download, export your YouTube cookies as cookies.txt and import them under Settings → Application → Cookie (see the cookie docs).
  3. Add channels, playlists or videos under Downloads, then start the queue.

Resources: Elasticsearch needs about 1 GB of RAM, and Tube Archivist about 1 GB while it downloads (it idles near 300 MB). Use a plan that allows 1 GB per service. Grow the Tube Archivist volume as your archive grows.

Optional settings: add TA_AUTO_UPDATE_YTDLP=release to Tube Archivist to install the newest yt-dlp on each start. Raise TA_WEB_WORKERS and TA_CELERY_CONCURRENCY (default 1) on bigger plans. To use your own domain, add it to TA_HOST (space separated).

Updates: each new version is a commit to the template repo with a changelog entry. Railway then shows "update available" on your project, and you choose when to apply it. Read the changelog first, and take a snapshot under Settings → Actions before big updates.

Why Deploy Tube Archivist on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Tube Archivist on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
A PostgreSQL-based time-series database for analytics on Railway.

Rakit
1
View Template
Neo4j 2026.10 Community
Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

My Projects
0