---
title: "Deploy Tube Archivist"
description: "Self-hosted YouTube archive: download, index, search and watch videos"
category: "Storage"
url: https://railway.com/deploy/tube-archivist
---

# Deploy Tube Archivist

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

**[Deploy Tube Archivist on Railway](https://railway.com/template/tube-archivist)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/tube-archivist/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Storage

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Tube Archivist https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/tube-archivist.png

- **Source:** https://github.com/aalfath/tubearchivist-railway-template
- **Health check:** /api/health/
- **Public domain:** Yes

### Elasticsearch https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/elasticsearch.png

- **Source:** https://github.com/aalfath/tubearchivist-railway-template
- **Health check:** /_cluster/health

## Documentation

# 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

* [Tube Archivist on GitHub](https://github.com/tubearchivist/tubearchivist) and its [v0.6.0 release](https://github.com/tubearchivist/tubearchivist/releases/tag/v0.6.0)
* [Tube Archivist documentation](https://docs.tubearchivist.com/)
* [Template source repo](https://github.com/aalfath/tubearchivist-railway-template)

### 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**

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](https://docs.tubearchivist.com/settings/application/#cookie)).
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](https://github.com/aalfath/tubearchivist-railway-template/blob/main/CHANGELOG.md) 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.



## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/tube-archivist
