---
title: "Deploy Stirling PDF"
description: "Private PDF editor. AI processing, OCR, classification, compression,..."
category: "Other"
url: https://railway.com/deploy/stirling-pdf-4
---

# Deploy Stirling PDF

Private PDF editor. AI processing, OCR, classification, compression,...

**[Deploy Stirling PDF on Railway](https://railway.com/template/stirling-pdf-4)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/stirling-pdf-4/manifest.json

- **Creator:** decoge
- **Category:** Other

## Template content

### Stirling PDF https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/stirling-pdf.svg

- **Image:** stirlingtools/stirling-pdf:latest
- **Start command:** `/bin/bash -c 'mkdir -p /stirling-data/configs /stirling-data/logs /stirling-data/customFiles /stirling-data/pipeline /stirling-data/storage && chown -R 1000:1000 /stirling-data 2>/dev/null; exec tini -- /scripts/init.sh'`
- **Health check:** /api/v1/info/status
- **Public domain:** Yes

## Documentation

# Deploy and Host Stirling PDF on Railway

![Stirling PDF editor UI](https://framerusercontent.com/images/7VBFPZlo4MqQiSnTP2NkNPpR9L0.png)

Stirling PDF is a self-hosted, web-based PDF toolkit. Merge, split, convert, OCR, compress, rotate, and edit PDFs in the browser without sending files to a third-party cloud. Everything runs on your own Railway service with optional login and persistent storage.

![Search tools — Sign, OCR, Merge and 57 more](https://framerusercontent.com/images/3iURCdjeneHnAxYVDKwcZn5Z9g.png)

## About Hosting Stirling PDF

This template runs the official Docker Hub image (`stirlingtools/stirling-pdf`) as a single Railway service with a public HTTP domain. A volume mounted at `/stirling-data` keeps configs, logs, custom files, pipelines, and storage across redeploys. Login is enabled by default with an auto-generated admin password. Frontend and backend URLs are wired to your Railway public domain. A healthcheck on `/api/v1/info/status` keeps the service healthy.

**How to log in after deploy:** open your service’s public URL, then use the credentials from the Stirling PDF service → **Variables** tab in Railway:

- Username: `SECURITY_INITIALLOGIN_USERNAME` (default `admin`)
- Password: `SECURITY_INITIALLOGIN_PASSWORD` (auto-generated via `${{secret()}}` on each new deploy)

Copy those values from Variables, sign in, and change the password in Stirling if you want a custom one.

## Common Use Cases

- Private PDF editing for a team or client so documents never leave your infrastructure
- OCR and conversion pipelines (scan to searchable PDF, PDF to images, merge/split batches)
- A always-on self-hosted alternative to SaaS PDF tools for indie projects and small agencies

![PDF pipelines and processing overview](https://framerusercontent.com/images/lQOXhNwxRfi6PsX5IiiQj6vyWI.png)

## Dependencies for Stirling PDF Hosting

- Docker image: `stirlingtools/stirling-pdf:latest` (Docker Hub)
- One Railway volume mounted at `/stirling-data` (required for persistence)

### Implementation Details

Environment highlights set by this template:

- `SECURITY_ENABLELOGIN=true` with `SECURITY_INITIALLOGIN_USERNAME=admin` and `SECURITY_INITIALLOGIN_PASSWORD=${{secret()}}`
- `STIRLING_BASE_PATH=/stirling-data` aligned with the volume mount
- `SYSTEM_FRONTENDURL` / `SYSTEM_BACKENDURL` = `https://${{RAILWAY_PUBLIC_DOMAIN}}`
- Healthcheck path: `/api/v1/info/status`

Start command creates the expected subdirectories under `/stirling-data` before launching Stirling PDF.

Login credentials are never shown in the deploy UI after the fact — always read them from the service **Variables** tab (`SECURITY_INITIALLOGIN_USERNAME` / `SECURITY_INITIALLOGIN_PASSWORD`).

## Why Deploy Stirling PDF 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 Stirling PDF 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

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/stirling-pdf-4
