Deploy Tube Archivist
Self-hosted YouTube archive: download, index, search and watch videos
Redis
Just deployed
/data
Tube Archivist
Just deployed
/data
Elasticsearch
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.reposet (included) - Redis (included)
Deployment Dependencies
Implementation Details
Services
| Service | What it does | Volume |
|---|---|---|
| Tube Archivist | Web UI, API, yt-dlp download worker and scheduler (public URL, health check /api/health/) | /data: videos, thumbnails, SQLite users, backups |
| Elasticsearch | Search index, download queue, app settings (private only) | /usr/share/elasticsearch/data |
| Redis | Task queue and cache (private only) | /data |
After deploy
- Open the Tube Archivist URL. Log in as
adminwith theTA_PASSWORDshown in the Tube Archivist service's Variables tab. - YouTube blocks most cloud servers ("Sign in to confirm you're not a bot"). Before your first download, export your YouTube cookies as
cookies.txtand import them under Settings → Application → Cookie (see the cookie docs). - 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
Redis
redis:8.2Tube Archivist
aalfath/tubearchivist-railway-templateElasticsearch
aalfath/tubearchivist-railway-template