Railway

Deploy paperless-ngx

Self-hosted document archive with OCR, search, and tagging in one web app

Deploy paperless-ngx

/usr/src/paperless/data

Just deployed

/data

/var/lib/postgresql/data

Deploy and Host Paperless-ngx on Railway

About Hosting Paperless-ngx on Railway

Paperless-ngx runs well on Railway as a Docker-based web service backed by managed Postgres and Redis, giving you quick browser access to document ingestion, OCR, and search.

Tech Stack

  • Paperless-ngx (Django + Celery)
  • PostgreSQL 18
  • Redis 8
  • Docker image deployment on Railway

Why Deploy Paperless-ngx on Railway

Railway provides fast Docker deploys, built-in private networking between services, and simple environment variable wiring for multi-service apps like Paperless-ngx.

Common Use Cases

  • Personal paperless office and scanned invoice archive
  • Team document indexing and full-text retrieval
  • Email/consume-folder based document intake workflows

Deployment Notes

  • Web service uses pinned upstream image docker.io/paperlessngx/paperless-ngx:2.20.15 and listens on container port 8000.
  • Set PORT=8000 for Railway HTTP routing.
  • Required app variables include database/redis wiring plus PAPERLESS_SECRET_KEY.
  • Admin bootstrap is enabled via PAPERLESS_ADMIN_USER and PAPERLESS_ADMIN_PASSWORD.
  • Postgres and Redis are private internal services; only the web service is public.
  • App media persistence is not mounted by default in this template; add a volume based on your retention requirements.

Dependencies for Paperless-ngx on Railway

Paperless-ngx depends on PostgreSQL for metadata persistence and Redis for task queue/broker functionality.

Deployment Dependencies

ServiceImagePortVolume
webserverdocker.io/paperlessngx/paperless-ngx:2.20.158000-
Postgresghcr.io/railwayapp-templates/postgres-ssl:185432/var/lib/postgresql/data
Redisredis:8.2.16379/data

Template Content

More templates in this category

View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play 🚀

PROJETOS
View Template
Postgres Backup to Cloudflare R2 (S3-Compatible)
Automated PostgreSQL backups to S3-compatible storage with encryption

Artour
View Template
ReadySet
A lightweight caching engine for Postgres

Milo