Deploy Unstract

Extract structured JSON from PDFs and scans with LLMs: no-code APIs + ETL

Deploy Unstract

/var/lib/postgresql/data

/data

Just deployed

/data

Deploy and Host Unstract on Railway

Unstract is an open-source (AGPL-3.0) no-code platform that uses large language models to pull structured data out of unstructured documents such as PDFs, scans, invoices and contracts. You write prompts in its Prompt Studio, check the results side by side with the document, then deploy the extraction as an API or an ETL pipeline.

About Hosting Unstract

Unstract runs as several services: a Django backend, a React web app, a platform service, a text-extraction bridge and a set of queue workers, plus PostgreSQL, Redis and S3-compatible object storage. This template builds all of them from pinned official Unstract v0.204.0 images and wires them together over Railway's private network. Passwords and keys are generated, the database and file storage sit on volumes, and the Backend runs migrations on its own when it starts. You bring an LLM provider key and enter it in the web app. The stack needs about 2.5 GB of RAM (Workers 2 GB, Backend 1 GB, the rest under 0.1 GB each), so use Railway's Hobby plan or higher.

Common Use Cases

  • Extract fields from invoices, receipts, purchase orders or bank statements into JSON
  • Turn contracts, insurance forms or medical records into structured rows for a database or warehouse
  • Offer a document-to-JSON API to your own apps, or run scheduled ETL jobs from cloud storage

Dependencies for Unstract Hosting

  • An API key for an LLM provider (OpenAI, Anthropic, Azure OpenAI, Bedrock, Gemini, Mistral, Ollama or any OpenAI-compatible endpoint), plus an embedding model
  • A text extractor: a free LLMWhisperer key, LlamaParse, or your own Unstructured API server

Deployment Dependencies

Implementation Details

Services in this template:

  • Unstract (public): the web app behind nginx; it proxies the API to the Backend.
  • Backend: the Django API. On first boot it creates the schema, the pgvector extension and the file bucket, then runs migrations.
  • Workers: upstream's Postgres-queue workers (executor, file processing, callbacks, scheduler, notifications, log consumers) in one service. It restarts as a whole if any worker dies.
  • Platform and X2Text: the internal adapter and text-extraction services.
  • Postgres: PostgreSQL 17 with pgvector, on a volume. It is the database and can also be the vector DB.
  • MinIO: object storage for uploaded and processed files, on a volume.
  • Redis: cache and log stream.

After deploy:

  1. Open the Unstract service's URL. Log in as unstract, with the password from Backend → Variables → DEFAULT_AUTH_PASSWORD.
  2. In Settings, add an LLM, an embedding model, a vector DB and a text extractor. For the vector DB pick "Postgres": host postgres.railway.internal, port 5432, database and user unstract, the password from Postgres → Variables → POSTGRES_PASSWORD, SSL on.
  3. Create a Prompt Studio project, upload a sample document and write your prompts, then deploy the project as an API or a workflow.

Left out on purpose: the tool runner, which needs the Docker socket that Railway doesn't provide (Prompt Studio, APIs and ETL pipelines work without it). Also left out: RabbitMQ (unused since dispatch moved to Postgres queues), Qdrant (pgvector replaces it) and the optional Flipt and Unstructured servers.

Updating: the template's services build from the GitHub repository above. When it moves to a new Unstract version, Railway shows an update notice in your project; read the repo's CHANGELOG, then apply it. Migrations run automatically.

Why Deploy Unstract 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 Unstract 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
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1