Self-hosted app·Documents, notes and projects
Stirling-PDF hosting in the Swiss Alps.
Stirling-PDF hosting in Switzerland: run 3.1.0 with Docker on VPS Pro (6 vCPU, 8 GB) in ALP1. Sizing, compose file, TLS, backups, limits.
- Java
- LibreOffice
- Docker
- NGINX
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port20 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $206.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 6 vCPU, 8 GB RAM
- 320 GB NVMe local storage
- 20 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes, and the plan we recommend is VPS Pro: 6 vCPU, 8 GB RAM, 320 GB NVMe and 20 TB of monthly transfer in ALP1 for $22.99 a month, deployed on Debian 13 with Docker Compose. That covers a team of up to about ten people on the standard latest image with OCR and Office conversion switched on. What decides whether it stays up is memory. A large PDF can take many times its file size in RAM while it is being processed, and when the container runs out, every job in flight fails with it. Give the container a hard memory limit, leave room outside it for the operating system, and do not publish port 8080 to the internet while the default admin / stirling account is still active.
02/06
What Stirling PDF is and who runs it.
Stirling PDF is a self-hosted web application for working on PDF files: merging and splitting, OCR, redaction, signing, compression, conversion to and from Office formats, and a REST API that exposes nearly every tool to scripts. The code lives at Stirling-Tools/Stirling-PDF on GitHub (95.4k stars when we checked on 4 November 2026) and is developed by Stirling PDF, Inc. The project calls itself open-core: the server is free to run, and a licence key bought from Stirling switches on additional features. The current release is 3.1.0, published on 5 October 2026. It took group signing ("Stirling Sign") out of alpha and added an opt-in beta Office converter; the 3.0 line before it introduced the PDF Processor, which runs the same tools as batch pipelines over folders, FTP or S3 sources.
The backend is Java, and the standard image ships the external programs that do most of the work: LibreOffice, Tesseract with OCRmyPDF, WeasyPrint, Calibre, Ghostscript, QPDF and ImageMagick. Those programs, more than the Java process itself, are why sizing needs some thought.
Licensing affects a team before hardware does. A self-hosted server runs on Stirling's Free plan by default, which allows 5 users and includes all PDF tools, the REST API and OAuth2/OIDC single sign-on. Team (100 users) adds an external PostgreSQL database, clustering, S3 file storage and Prometheus metrics; SAML sign-on and audit logging are Enterprise only. Those plans are sold by Stirling, not by us.

Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
Stirling's own guidance is 2–4 cores and 4 GB of RAM for 1–10 users, and 4–8 cores with 8–16 GB for 10–50 users, with SSD storage from 50 GB at that size. Each image tag has a suggested memory allowance: 4 GB for latest, 6 GB for latest-fat (which adds a bundled AI engine, off until you enable it), and 2 GB for latest-ultra-lite, which drops OCR, Office, HTML and ebook conversion and has no login. The cost per tool varies a great deal. Merging and splitting barely touch the CPU, OCR saturates it, each LibreOffice conversion holds a full core while it runs, and rendering pages to images is the most memory-hungry thing the server does.
| Plan | vCPU | RAM | NVMe | Transfer / month | Price / month | Where it fits |
|---|---|---|---|---|---|---|
| VPS Standard | 4 | 4 GB | 160 GB | 15 TB | $12.99 | One or two people, mostly merge and split; latest only under a tight limit |
| VPS Pro (recommended) | 6 | 8 GB | 320 GB | 20 TB | $22.99 | Up to ~10 users with OCR and Office conversion on latest |
| VPS Power | 12 | 16 GB | 640 GB | 40 TB | $42.99 | 10–50 users, large OCR batches, or latest-fat with the AI engine on |
We recommend Pro over Standard because of how the memory divides. On a 4 GB machine, giving the container the 4 GB that latest asks for leaves nothing for Debian, nginx and the page cache, and the kernel's OOM killer will pick the Java process first. On Pro, a 6 GB container limit leaves about 2 GB for the system. The image sets the Java heap to at most 70 % of the container limit, so the heap tops out near 4.2 GB and roughly 1.8 GB remains inside the container for Tesseract and LibreOffice (theoretical split, derived from Stirling's documented defaults). Without a limit, Java sizes its heap from the host's total RAM, which is the usual way small servers fall over.
For orientation only, an independent test of v2.14.2 on a Raspberry Pi 5 recorded about 1.27 GiB at idle, most of it Java reserving memory at start-up.
VPS transfer is metered, not unmetered: Pro includes 20 TB a month. If each job uploads a 20 MB file and downloads a 20 MB result, that is 40 MB per job, or about 500,000 jobs a month before the allowance runs out (theoretical). An office will never come close; a public API endpoint could. Inside the container Stirling listens on port 8080, and the outside world should only ever see 80 and 443 on a reverse proxy.
04/06
How to deploy it with us.
- 01
1. Order and prepare the server
Order VPS Pro with Debian 13 from the deploy link, log in over SSH, and point an A record such as
pdf.example.comat the server's IPv4. Add Docker's apt repository as described in Docker's Debian install guide (Debian 13 is a supported release), then install Docker Engine with the Compose plugin, nginx and certbot, and create the data folders:apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin apt install nginx certbot python3-certbot-nginx mkdir -p /opt/stirling/stirling-data/{configs,logs,customFiles,pipeline,storage,tessdata} chown -R 1000:1000 /opt/stirling/stirling-dataThe
chownis not optional. The container runs as UID and GID 1000, and with folders owned by root it cannot write its settings or its database. - 02
2. Write the compose file
Save this as
/opt/stirling/docker-compose.yml:services: stirling-pdf: image: docker.stirlingpdf.com/stirlingtools/stirling-pdf:3.1.0 container_name: stirling-pdf ports: - '127.0.0.1:8080:8080' volumes: - ./stirling-data/configs:/configs - ./stirling-data/logs:/logs - ./stirling-data/customFiles:/customFiles - ./stirling-data/pipeline:/pipeline - ./stirling-data/storage:/storage - ./stirling-data/tessdata:/usr/share/tessdata environment: SECURITY_ENABLELOGIN: "true" SYSTEM_ENABLEANALYTICS: "false" SYSTEM_BACKENDURL: https://pdf.example.com SYSTEM_FRONTENDURL: https://pdf.example.com mem_limit: 6g restart: unless-stoppedThree choices here differ from Stirling's quick start, on purpose. The image is pinned to
3.1.0rather thanlatest, as Stirling's own production checklist advises, so upgrades happen when you decide and not when the registry moves. The port is bound to127.0.0.1because Docker writes its own packet-filter rules for published ports, and a port published on all interfaces bypasses ufw entirely; Docker's install guide warns about exactly this. AndSYSTEM_ENABLEANALYTICS=falseanswers in advance the question Stirling otherwise puts to the first admin, whether to send server usage data to PostHog. If the container still stops under heavy load, Stirling's documented fix isJAVA_CUSTOM_OPTS: "-XX:MaxRAMPercentage=50", notJAVA_TOOL_OPTIONS, which the image overwrites.Start it with
docker compose up -dfrom/opt/stirlingand followdocker logs -f stirling-pdfuntil it reports that it is running on port 8080. - 03
3. Put nginx and TLS in front
Stirling accepts uploads up to 2000 MB by default, while nginx accepts 1 MB, which is why a fresh install so often answers the first scanned contract with "413 Request Entity Too Large". The block below follows Stirling's production checklist; long OCR and Processor runs need the 30-minute timeouts and unbuffered responses.
server { listen 80; server_name pdf.example.com; client_max_body_size 2000M; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_buffering off; proxy_read_timeout 1800s; proxy_send_timeout 1800s; } }Then
certbot --nginx -d pdf.example.comobtains a certificate and adds the HTTPS listener and redirect. Open the site, sign in asadmin/stirling, and set a new password when prompted. Five failed sign-ins lock an account for 120 minutes by default; if you want IP bans on top of that, Stirling documents a Fail2Ban setup. Uptime checks can poll/api/v1/info/status, which needs no session. - 04
4. OCR languages, updates and backups
A Basel fiduciary scanning German and French invoices, or a Ticino practice with Italian correspondence, will want
deu.traineddata,fra.traineddataandita.traineddatainstirling-data/tessdata, followed by a restart. To upgrade, copyconfigs/somewhere safe, change the tag in the compose file, and rundocker compose pull && docker compose up -d.Two folders carry everything worth keeping.
configs/holds the settings, the generated keys and the built-in database, which also writes a nightly dump toconfigs/backup/db/.storage/holds files users save on the server, a feature that is on by default, and 3.1.0 also keeps processing originals for seven days before clearing orphans, so disk use tracks activity. Ship both off the machine with restic to an S3-compatible bucket in our object storage: 250 GB costs $1.99 a month, billed by size, with no request fees. Stirling's own S3 storage backend is a Team feature, so on the Free plan the bucket is for backups, not live storage. Daily VPS backups are available too, at +20 % of the plan price.
05/06
Cost.
| Item | Per month |
|---|---|
| VPS Pro (6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB transfer, 1 Gbps) | $22.99 |
| Daily VPS backups (+20 %) | $4.60 (theoretical: 20 % of $22.99) |
| Object storage, 250 GB bucket for restic | $1.99 |
| Total | $29.58 |
Yearly billing takes roughly 25 % off the VPS, which puts Pro at $206.99 a year. An additional IPv4 is $2 a month and priority support $10. Outbound port 25 is open on every VPS, so Stirling's invite-by-email feature can deliver through a mail setup you run yourself; SPF and DKIM for your domain remain your job. The full catalogue is on our pricing page.
Payment is crypto only (Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and other coins), with prices and balances in US dollars. Top-ups run from $25 to $5,000, with a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. A $250 top-up becomes $287.50 of balance, about twelve months of VPS Pro at the monthly rate (theoretical). Opening the account is no-KYC: an email address is enough. One caveat in fairness to the reader: should you later need Stirling's Team licence, you buy it from Stirling PDF, Inc. through Stripe, and the key is checked online. The Free plan needs neither.
06/06
Limits and acceptable use.
The VPS contract is with Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen), and Swiss law governs it; our page on jurisdiction sets out what that changes and what it does not. What runs on the server, and what passes through it, is your responsibility. If the PDFs contain personal data, you are the controller under the revised Federal Act on Data Protection, in force since 1 September 2023. The European Commission's review of 15 January 2024 confirmed Switzerland's adequacy decision, so an EU client can send documents to a server in ALP1 without additional transfer safeguards.
Do not run an open instance. The latest-ultra-lite image has no login at all, and SECURITY_ENABLELOGIN=false removes it from the other images; either configuration belongs behind a VPN or an IP allowlist, never on a public address. An unauthenticated Stirling with Calibre and share links is a ready-made distribution point for other people's ebooks. In Switzerland, downloading a work for private use is permitted (software excepted), but making it available online without permission is not. Since April 2020, CopA art. 39d can also oblige a host to stop a work from being made unlawfully available again, but only when it was already made available unlawfully through the same service, the host was notified, and the service creates a particular risk of infringement. An open converter that hands out download links is the setup most likely to meet all three conditions.
A DMCA notice has no direct legal effect in Switzerland. We forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority, or where the content is manifestly unlawful (Swico Code of Conduct Hosting 2025). The details are in our page on DMCA notices. To reach us about any of this, open a support ticket from the client panel.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProRecommendedProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Is VPS Standard enough for Stirling PDF?
For one or two people who mostly merge, split and compress, it works if you cap the container at about 3 GB and accept that large OCR jobs may fail. Once OCR or Office conversion is part of daily work, 4 GB in total is too little, since Stirling's suggested allowance for the latest image alone is 4 GB. Start on Pro unless you are sure.
Can VPS Pro run latest-fat with the AI engine?
Stirling suggests 6 GB for latest-fat and more once the AI engine is switched on. With 8 GB in total, that leaves too little headroom for Debian and nginx. Use VPS Power (12 vCPU, 16 GB, $42.99) for that image.
Does Stirling PDF send our data anywhere?
According to Stirling's documentation, document contents are never part of its analytics. With analytics on, the server reports details such as version, hardware, selected settings and operation counts to PostHog's EU servers, and browsers send page and tool usage once a user consents; SYSTEM_ENABLEANALYTICS=false turns all of it off. A Team licence key is checked online, and the Processor and AI tools draw on a processing allowance tied to Stirling Cloud. If that matters to you, restrict egress in Docker's DOCKER-USER chain.
Can Stirling keep its files in your object storage?
Not on the Free plan, where S3 file storage is not available. Use the bucket for restic backups of configs/ and storage/. Do not rclone mount it under configs/: that folder holds Stirling's database, and a FUSE mount of an object store is not a place for one.
We have more than five users. What then?
The Free plan stops at five, so you either buy Team from Stirling or stay small. On the hosting side, 10–50 users point to VPS Power. If you run OCR batches around the clock, a dedicated server such as Rigi (EPYC 4244P, 6 cores/12 threads, 32 GB, 1 TB NVMe, $64.99 a month) gives you dedicated cores and a 10 Gbps port with unmetered traffic under fair use.
Can a US authority obtain our documents from ALP1?
We do not make blanket promises about foreign law. As of 31 October 2026, the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. We act on decisions of competent Swiss authorities. That describes the current legal position; it is not a guarantee about the future.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Fedlex, RS 235.1Fedlex, RS 235.1
- Fedlex, Copyright Act (LDA/CopA)Fedlex, Copyright Act (LDA/CopA) · verified 31 Oct 2026
- IPI, copyright on the internetIPI, copyright on the internet
EU and other countries
- European Commission, adequacy decisionsEuropean Commission, adequacy decisions
- justice.govjustice.gov · verified 31 Oct 2026
Industry, providers and software
- Stirling-ToolsRelease 3.1.0
- Stirling-ToolsStirling-PDF repository
- Docker DocsInstall Docker Engine on Debian
- SwicoCode of Conduct Hosting
Other references
- Stirling PDF docsInstall with Docker
- Stirling PDF docsPerformance
- Stirling PDF docsProduction checklist
- Stirling PDF docsPlans and licences
- Stirling PDF docsAnalytics and telemetry
- peppe8opeppe8o.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
