Deploy Paperless-ngx + Postgres/Redis - Document Archive with OCR
Deploy and Host with Railway
paperless
Just deployed
/usr/src/paperless/media
redis
Just deployed
/data
gotenberg
Just deployed
postgres
Just deployed
/var/lib/postgresql/data
Just deployed
Deploy and Host Paperless-ngx + Postgres/Redis on Railway
Self-host Paperless-ngx with Postgres, Redis, Tika, Gotenberg, generated admin credentials, and persistent document storage.
About Hosting Paperless-ngx + Postgres/Redis on Railway
paperless: public Paperless-ngx web servicepostgres: private database for document metadataredis: private cache/broker servicetikaandgotenberg: private helpers for Office/email document conversion- Persistent media/document volume
- Generated admin password, database password, and app secret
Why Deploy Paperless-ngx + Postgres/Redis on Railway
The published template deploy test created paperless, postgres, redis, gotenberg, and tika; all services reached SUCCESS; token auth returned HTTP 200; document upload returned HTTP 200; and the uploaded document remained searchable after restarting paperless.
This template favors a complete document archive path over the smallest possible service count.
Common Use Cases
- Personal document archives
- Small-team searchable document inboxes
- OCR-backed PDF and image storage
- Office document ingestion with Tika/Gotenberg
- Evaluation environments for Paperless-ngx
Dependencies for Paperless-ngx + Postgres/Redis Hosting
Paperless depends on Postgres for metadata, Redis for scheduled/background work, persistent filesystem storage for documents and media, and Tika/Gotenberg for richer document conversion.
Deployment Dependencies
PAPERLESS_SECRET_KEY: generated Paperless secretPAPERLESS_ADMIN_USER: initial admin usernamePAPERLESS_ADMIN_PASSWORD: generated initial admin passwordPOSTGRES_PASSWORD: generated database passwordPAPERLESS_REDIS: private Redis connectionPORT: Railway public routing port for Paperless
After Deploy
- Open the Paperless public URL.
- Sign in with the generated admin credentials.
- Upload a small test document.
- Watch resource usage if OCR jobs become large or frequent.
Support Checklist
If a deploy fails, include all service deployment IDs, the public URL response, and log lines mentioning Postgres, Redis, document storage, Tika, or Gotenberg.
Template Content
PORT
USERMAP_GID
USERMAP_UID
GRANIAN_HOST
GRANIAN_PORT
PAPERLESS_PORT
PAPERLESS_REDIS
PAPERLESS_DBHOST
PAPERLESS_DBNAME
PAPERLESS_DBPASS
PAPERLESS_DBPORT
PAPERLESS_DBUSER
PAPERLESS_DBENGINE
PAPERLESS_TIME_ZONE
PAPERLESS_ADMIN_MAIL
PAPERLESS_ADMIN_USER
PAPERLESS_SECRET_KEY
PAPERLESS_OCR_LANGUAGE
PAPERLESS_TIKA_ENABLED
PAPERLESS_ALLOWED_HOSTS
PAPERLESS_TIKA_ENDPOINT
PAPERLESS_ADMIN_PASSWORD
PAPERLESS_CSRF_TRUSTED_ORIGINS
PAPERLESS_TIKA_GOTENBERG_ENDPOINT
redis
redis:8-alpineRAILWAY_RUN_UID
gotenberg
gotenberg/gotenberg:8.25postgres
postgres:17-alpinePGDATA
POSTGRES_DB
POSTGRES_USER
POSTGRES_PASSWORD