Self-host Unstructured with Levelrail
An API that turns PDFs, Word files, and other documents into clean data for RAG pipelines.
- AuthorUnstructured-IO
- LicenceApache-2.0
- Memory2 GiB
- Archarm64
- Services1
How to self-host Unstructured
-
Pull the images
One image is pulled on your server.
Show images
downloads.unstructured.io/unstructured-io/unstructured-api:latest
-
Create the app
One service starts in a single Compose app, on port 8000.
-
Fill in the secrets
1 secret is generated and stored encrypted, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
Unstructured requirements
- Memory
- About 2 GiB
- Architectures
- amd64 image published, arm64 image published
- Ports
- 8000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- Apache-2.0, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
- Host ports. It publishes port 8000 on the host, so open them in the VPS firewall only if you want that.
- Review. Image is not pinned to a version tag, so a redeploy can pull different code (downloads.unstructured.io/unstructured-io/unstructured-api:latest).
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Unstructured. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Unstructured docs page.
Deploy Unstructured your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Unstructured from the CLI
levelrail-cli templates deploy unstructured --name my-unstructured Deploy Unstructured with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/unstructured/deploy Unstructured configuration
Unstructured services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| unstructured | downloads.unstructured.io/unstructured-io/unstructured-api:latest | 8000 | none |
Unstructured environment variables
| Variable | Service | Value |
|---|---|---|
| UNSTRUCTURED_API_KEY | unstructured | Generated at deploy |
Ports and volumes
- Ports
- 8000
- Volumes
- none
Unstructured FAQ
How much memory does Unstructured need?
The catalog lists about 2 GiB of memory for Unstructured.
Does Unstructured run on arm64?
For Unstructured, an arm64 image is published; amd64 is image published.
What licence is Unstructured under?
Unstructured is licensed under Apache-2.0, which is permissive, with few conditions on reuse.
Does Unstructured need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which ports does Unstructured use?
Unstructured listens on port 8000 inside the stack.
Can I deploy Unstructured on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Unstructured, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image downloads.unstructured.io/unstructured-io/unstructured-api:latest is what you deploy there.