Self-hosted app·Documents, notes and projects
Documenso hosting on a Swiss VPS.
Documenso hosting on a Swiss VPS (6 vCPU, 8 GB, $22.99/mo) in ALP1: Docker Compose setup, signing certificate, sizing, cost and Swiss signature law.
- Next.js
- PostgreSQL
- Docker
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
The short answer.
Yes. Documenso runs comfortably on our Cloud VPS Pro plan in ALP1, in the Swiss Alps: 6 vCPU, 8 GB RAM, 320 GB NVMe and 20 TB of monthly transfer for $22.99 a month, on Debian 13 with the official Docker image. That is well above Documenso's own production recommendation of 2 cores and 2 GB, and the margin goes where it is needed, to PostgreSQL, which by default stores every PDF you upload.
The part that needs your attention is the signing certificate. Documenso seals each completed document with an X.509 certificate that you provide; without one, the application starts, accepts uploads, sends invitations and then fails at the moment of signing. Settle the certificate, outgoing mail and document storage before the first envelope goes out, because all three are tedious to change once documents exist.
02/06
What Documenso is and who maintains it.
Documenso is an open-source document-signing application, built as a self-hostable alternative to DocuSign. You upload a PDF, place signature and form fields, and send it to recipients by email. Each recipient signs in the browser, and when the last one has finished, Documenso seals the PDF cryptographically so later changes are detectable, and keeps an audit trail of signing events, timestamps and IP addresses. The Documenso team develops it in public on GitHub and also sells a hosted service.
The Community Edition is licensed under AGPL-3.0. Running it unmodified for your own organisation is the easy case; if you modify the code and let other people use your instance over a network, the licence obliges you to offer them your source. A paid Enterprise Edition lifts that obligation and unlocks features such as SSO and the CSC signing transport discussed below.
The project moves quickly. Between 28 June and 22 October 2026 it shipped v2.14.0 through v2.21.1, eight minor releases and a patch; v2.21.1 (22 October 2026) was current when we checked on 4 November 2026. Database migrations run automatically when a new image starts, so pin an explicit version tag and upgrade deliberately rather than tracking latest.
One legal point decides whether Documenso fits your use at all. Swiss contracts need no particular form unless the law prescribes one (CO art. 11), and for those that do, only a qualified electronic signature with a qualified timestamp counts as handwritten (CO art. 14 para. 2bis). The Community Edition produces simple electronic signatures. They work as evidence for the ordinary run of commercial agreements, NDAs and approvals, but they do not satisfy a written-form requirement such as the one for assigning a claim (CO art. 165). Documenso lists ZertES, the Swiss signature act, as planned. Qualified signatures are reachable only through the CSC transport, which hands the signing step to an external trust service provider and requires an Enterprise licence, S3 storage and a timestamp authority.
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.
| Documenso minimum (testing) | Documenso recommended (production) | VPS Pro | |
|---|---|---|---|
| CPU | 1 core | 2+ cores | 6 vCPU |
| RAM | 1 GB | 2+ GB | 8 GB |
| Disk | 10 GB | 20+ GB | 320 GB NVMe |
| Database | PostgreSQL 14+ | PostgreSQL 14+ | PostgreSQL 15 in the upstream compose file |
| Network | — | — | 20 TB transfer per month, 1 Gbps |
Beyond the server, Documenso needs a domain, an SMTP server or mail API, and a reverse proxy that terminates TLS and forwards to the application on port 3000. MySQL, MariaDB and SQLite are not supported. Background jobs (emails, document processing) run on a queue inside PostgreSQL by default; you only need Redis 6.2+ if you switch to the BullMQ provider for higher throughput.
Our Standard plan (4 vCPU, 4 GB, 160 GB, $12.99) will carry a small office that sends a few dozen envelopes a month, and we would not talk you out of it. We recommend Pro because the default storage mode puts every PDF inside PostgreSQL as base64, so the database grows with your archive and benefits from RAM it can use as page cache, and because PDF rendering and sealing arrive in bursts when several signers finish at once.
Disk will not be the limit. Documenso's own sizing assumes an average document of 500 KB, so 1,000 documents a month come to about 500 MB, or 6 GB a year; base64 encoding in the database adds roughly a third, which gives about 8 GB a year inside PostgreSQL (theoretical). At that rate the 320 GB disk lasts decades. What grows uncomfortable first is the time a full pg_dump and restore take, which is the practical argument for moving documents to object storage once volume climbs. The 20 TB of transfer is equally remote: theoretically, 40 million downloads of a 500 KB PDF.
04/06
How to deploy it with us.
- 01
1. Server, DNS and Docker
Order the VPS with the link above, point an A record such as
sign.example.comat its IPv4 address, and install Docker Engine and the Compose plugin from Docker's own apt repository, which supports Debian 13 "trixie". Docker's instructions list Debian'sdocker.iopackage among the conflicting packages to remove first. - 02
2. Signing certificate
A self-signed certificate is enough for most organisations. Documenso's example makes one valid for 365 days; we use three years here so the expiry does not arrive unannounced. A password is mandatory, since a
.p12without one fails with "Failed to get private key bags". The container runs as UID 1001, which must be able to read the file.sudo mkdir -p /opt/documenso && cd /opt/documenso sudo openssl genrsa -out private.key 2048 sudo openssl req -new -x509 -key private.key -out certificate.crt -days 1095 \ -subj "/C=CH/O=Example AG/CN=Example AG Document Signing" sudo openssl pkcs12 -export -out cert.p12 -inkey private.key -in certificate.crt sudo chown 1001:1001 cert.p12 && sudo chmod 400 cert.p12 sudo rm private.key certificate.crtPDF readers will not show a self-signed seal as trusted. If recipients need Adobe Approved Trust List recognition, Documenso's documentation points to an HSM-backed certificate instead. Either way, keep the certificate on the host and mount it; a certificate generated inside the container disappears with the container.
- 03
3. Compose file and environment
This is the upstream production compose file with three changes: a pinned image tag, restart policies, and the application port bound to
127.0.0.1. Docker publishes ports by writing its own packet-filter rules, so a port published on all interfaces is reachable from the internet whatever ufw or nftables says; binding to loopback leaves the reverse proxy as the only way in.# /opt/documenso/compose.yml name: documenso services: database: image: postgres:15 restart: unless-stopped environment: - POSTGRES_USER=${POSTGRES_USER:?err} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?err} - POSTGRES_DB=${POSTGRES_DB:?err} healthcheck: test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'] interval: 10s timeout: 5s retries: 5 volumes: - database:/var/lib/postgresql/data documenso: image: documenso/documenso:2.21.1 restart: unless-stopped depends_on: database: condition: service_healthy env_file: .env ports: - 127.0.0.1:3000:3000 volumes: - /opt/documenso/cert.p12:/opt/documenso/cert.p12:ro volumes: database:Generate the three application secrets with
openssl rand -base64 32, but the database password withopenssl rand -hex 24: base64 output contains/,+and=, which break the connection URL unless you encode them.# /opt/documenso/.env (chmod 600) POSTGRES_USER=documenso POSTGRES_PASSWORD=<hex password> POSTGRES_DB=documenso NEXT_PRIVATE_DATABASE_URL=postgresql://documenso:<hex password>@database:5432/documenso NEXT_PRIVATE_DIRECT_DATABASE_URL=postgresql://documenso:<hex password>@database:5432/documenso NEXTAUTH_SECRET=<base64 secret> NEXT_PRIVATE_ENCRYPTION_KEY=<base64 secret> NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY=<base64 secret> NEXT_PUBLIC_WEBAPP_URL=https://sign.example.com NEXT_PRIVATE_INTERNAL_WEBAPP_URL=http://localhost:3000 NEXT_PRIVATE_SIGNING_PASSPHRASE=<certificate password> NEXT_PRIVATE_SMTP_TRANSPORT=smtp-auth NEXT_PRIVATE_SMTP_HOST=<relay or your MTA> NEXT_PRIVATE_SMTP_PORT=587 NEXT_PRIVATE_SMTP_USERNAME=<user> NEXT_PRIVATE_SMTP_PASSWORD=<password> NEXT_PRIVATE_SMTP_FROM_NAME=Example AG NEXT_PRIVATE_SMTP_FROM_ADDRESS=noreply@example.com # Stop reporting version and installation ID to Documenso DOCUMENSO_DISABLE_TELEMETRY=true # Set to true once your own accounts exist NEXT_PUBLIC_DISABLE_SIGNUP=falseStart it with
docker compose up -d, then checkcurl -s http://127.0.0.1:3000/api/certificate-status, which reports whether the certificate loaded. Accounts created through signup are ordinary users; admin rights are granted directly in the database. Once your team is in, setNEXT_PUBLIC_DISABLE_SIGNUP=true, or restrict signup to your domain withNEXT_PRIVATE_ALLOWED_SIGNUP_DOMAINS. - 04
4. Reverse proxy
Caddy, from Debian's archive, obtains and renews the TLS certificate itself. Put this in
/etc/caddy/Caddyfileand reload:sign.example.com { reverse_proxy 127.0.0.1:3000 }Documenso displays a 5 MB upload limit unless you raise
NEXT_PUBLIC_DOCUMENT_SIZE_UPLOAD_LIMIT. If you use nginx instead of Caddy, raiseclient_max_body_sizeto match, or large contracts will fail at the proxy with an error that never reaches Documenso's logs. - 05
5. Outgoing mail
Outbound port 25 is open on every VPS, so you can run your own MTA next to Documenso. Whether invitations then reach Gmail and Outlook inboxes depends on SPF, DKIM, DMARC, a matching PTR record and the reputation of a fresh IP, not on Documenso; most deployments relay through an authenticated provider on port 587 instead, and our notes on our answer on port 25 cover both routes.
Choose the relay with the same care as the host. Every invitation carries the document title and the names and addresses of sender and recipient, so a relay abroad receives that data. Since 15 September 2024 Switzerland recognises US companies certified under the Swiss-U.S. Data Privacy Framework as offering adequate protection, which makes such a relay lawful, but it remains outside Swiss jurisdiction.
- 06
6. Document storage
Database storage is the default and keeps backups to a single
pg_dump. For larger archives, Documenso's S3 transport works with our S3-compatible object storage: setNEXT_PUBLIC_UPLOAD_TRANSPORT=s3, plus the endpoint, bucket, region, access keys andNEXT_PRIVATE_UPLOAD_FORCE_PATH_STYLE=trueif the endpoint requires path-style URLs.Decide this before production. Documenso does not migrate documents between backends; moving an existing archive means exporting blobs and rewriting database records by script. The CSC transport for qualified signatures also requires S3. Use the bucket through the application's S3 backend only, never as a mounted filesystem.
- 07
7. Backups and upgrades
A disk-level backup of a running PostgreSQL is only as good as its crash recovery, so take a logical dump as well and ship it off the server together with
.envandcert.p12. A database without its encryption keys and certificate is not a working restore.cd /opt/documenso docker compose exec -T database pg_dump -U documenso documenso \ | gzip > /var/backups/documenso-$(date +%F).sql.gz restic -r s3:https://<endpoint>/<backup-bucket> backup /var/backups /opt/documensoSee object storage for scheduling and retention. To upgrade, read the release notes, take a fresh dump, change the image tag and run
docker compose pull && docker compose up -d. Migrations run on start, so returning to an older tag means restoring the dump taken before the upgrade.
05/06
Cost.
| Item | Per month |
|---|---|
| VPS Pro: 6 vCPU, 8 GB RAM, 320 GB NVMe, 20 TB transfer, 1 Gbps | $22.99 |
| Daily backups (+20 %) | $4.60 |
| Object storage, 250 GB, for documents or off-server backups (optional) | $1.99 |
| Total with all three | $29.58 |
VPS traffic is not unmetered: the plan includes 20 TB of transfer a month, which a signing service will not come near. Paid yearly, the VPS costs roughly a quarter less: $206.99 a year. Extra IPv4 addresses are $2 a month and priority support $10. Current prices for every plan are on our pricing page.
Payment is in crypto only (Monero, Bitcoin, USDT, Ethereum, Litecoin and others), with 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; a $250 top-up credits $287.50, almost ten months of the full setup above (theoretical). The unused paid part of a top-up is refundable within 14 days. We are a no-KYC host: an email address is enough to open an account. Your signers will still see your domain on every invitation, and the audit trail records their IP addresses, so no-KYC on the hosting contract changes nothing about who your recipients know you to be.
06/06
Jurisdiction, limits and acceptable use.
The server sits in ALP1 and the contract is with Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen). The revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland continues to ensure adequate protection, so documents and signer data from EU counterparties can be processed here without additional safeguards. 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. That describes our part of the chain; a US mail relay, a foreign bucket or a CSC provider you add yourself sits under its own law. Our offshore hosting page sets out what Swiss jurisdiction changes and what it does not.
A signing service sends emails asking people to click a link and act on a document, which is precisely what phishing imitates. We do not allow instances that copy another signing provider's or a company's branding, that collect credentials or signatures under false pretences, or that send unsolicited signing requests in bulk; open port 25 does not relax the rules on spam. If you leave public signup enabled, strangers can create accounts and send envelopes from your domain and your IP address, and complaints about them come to you.
You are the controller for the personal data in your instance: documents, signer names and addresses, IP addresses in the audit trail. Retention, access requests and deletion are yours to handle under the FADP. Keep the software current, honour the AGPL if you modify and expose it, and respect the Enterprise licence terms if you use CSC signing. 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 content is manifestly unlawful (Swico Code of Conduct Hosting 2025). For anything specific, 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 a signature made with self-hosted Documenso valid under Swiss law?
For contracts with no prescribed form, which covers most commercial agreements, a Documenso signature is valid electronic evidence of consent. Swiss law treats only a qualified electronic signature with a qualified timestamp as equivalent to a handwritten one (CO art. 14 para. 2bis). The Community Edition produces simple electronic signatures, so for written-form contracts you need qualified signatures through Documenso's CSC transport, which requires an Enterprise licence and an external trust service provider, or a different tool.
Is the Standard VPS enough for Documenso?
For a few users and a few dozen envelopes a month, yes. Documenso recommends 2 cores and 2 GB for production, and Standard offers 4 vCPU and 4 GB for $12.99. We recommend Pro ($22.99, 8 GB) because by default every PDF lives inside PostgreSQL, which uses spare RAM as cache, and because sealing documents loads the CPU in bursts.
Can I keep Documenso's documents in your object storage?
Yes, through Documenso's S3 transport: set NEXT_PUBLIC_UPLOAD_TRANSPORT=s3 with our endpoint, a bucket, access keys and path-style URLs where required. Browser uploads go straight to the bucket through presigned URLs, so the bucket must allow your Documenso origin in a CORS rule.
Does a self-hosted Documenso send data back to Documenso?
By default it reports its version, an installation ID and a node ID at startup and in periodic heartbeats; Documenso states that no documents, names or email addresses are included. Setting DOCUMENSO_DISABLE_TELEMETRY=true stops it. An Enterprise licence key is validated against Documenso's licence server at startup, with the result cached locally.
Can Documenso send mail through my own mail server on the VPS?
Outbound port 25 is open on every VPS, so a local MTA works technically. Inbox delivery depends on SPF, DKIM, DMARC, a PTR record that matches your sending name and the reputation of the IP address. Most deployments use an authenticated relay on port 587 instead; if you pick a foreign relay, it will see document titles and recipient addresses.
Can I host Documenso without providing identification?
Yes. We are a no-KYC host: an email address is enough to order, and payment is in crypto only. Your recipients still see your domain on each invitation, the audit trail stores their IP addresses, and you remain the controller for that data under Swiss data protection law.
Sources
Every fact on this page, with its source
Checked 4 Nov 2026 unless noted.
Swiss law and authorities
- Swiss Code of Obligations, RS 220, arts. 11, 14 para. 2bis and 165fedlex.admin.ch
- Federal Office of Information Technology (BIT) — Contract law and qualified electronic signaturesbit.admin.ch
- Revised Federal Act on Data Protection in force since 1 September 2023fedlex.admin.ch
- Federal Office of Justice — recognition of Swiss-U.S. Data Privacy Framework since 15 September 2024bj.admin.ch
EU and other countries
- European Commission — adequacy review of 15 January 2024, decision 2000/518/EC remains in forcecommission.europa.eu
- US Department of Justice — CLOUD Act resources (executive agreements with the UK and Australia only)justice.gov · verified 31 Oct 2026
Industry, providers and software
Other references
- Documenso — Requirements (hardware, PostgreSQL 14+, port 3000, background jobs)docs.documenso.com
- Documenso — Docker Compose deployment (compose file, required variables, UID 1001, migrations on start, signup and admin notes)docs.documenso.com
- Documenso — Tips & common pitfalls (missing certificate, health endpoints, version pinning)docs.documenso.com
- Documenso — Local certificate (OpenSSL commands, mandatory password)docs.documenso.com
- Documenso — Storage configuration (S3 variables, CORS, no migration between backends, sizing, 5 MB default limit)docs.documenso.com
- Documenso — CSC (AES / QES) signing transport (Enterprise licence, S3, timestamp authority)docs.documenso.com
- Documenso — Signature levels (SES supported, ZertES planned, audit trail contents)docs.documenso.com
- Documenso — Licences, Community and Enterprise editionsdocs.documenso.com
- Documenso — Telemetrydocs.documenso.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.
