On this page
- Which server and software does DocuSeal require?
- How do you write the Compose file for DocuSeal?
- How do you start the containers and confirm they run?
- How do you publish DocuSeal over HTTPS with Caddy?
- What happens on the first visit?
- How do signing invitations get sent by email?
- How do you back up the documents and database?
- How do you upgrade DocuSeal later?
- What if a page loads without styles or links point to the wrong host?
- Questions
Which server and software does DocuSeal require?
A small plan is enough, because DocuSeal is a single Ruby on Rails container plus a database that only works when someone uploads or signs a document. Plan for these pieces:
- Operating system: Ubuntu 24.04 or 22.04, Debian 12 or 13, Rocky Linux 9 or AlmaLinux 9. Every command below runs on all of them once Docker is present.
- Memory: 1 GB runs it for one person; 2 GB leaves room for PostgreSQL, Caddy and PDF rendering when several signers are active.
- DNS: an A record (and AAAA if you use IPv6) for
sign.example.netpointing at198.51.100.24. The DNS records tutorial walks through it. - Docker Engine with the Compose plugin: follow the Docker Engine tutorial, or deploy the Docker app image, which ships Ubuntu 24.04 with Docker already installed.
Confirm the tools before going further:
docker --version
docker compose versionHow do you write the Compose file for DocuSeal?
Create a project folder owned by your deploy user and describe two services: the application and its PostgreSQL database. SQLite also works, but PostgreSQL makes backups and upgrades more predictable.
sudo mkdir -p /opt/docuseal
sudo chown deploy:deploy /opt/docuseal
cd /opt/docuseal
openssl rand -hex 24Copy the random string and use it as the database password in /opt/docuseal/compose.yaml:
services:
app:
image: docuseal/docuseal:latest
restart: unless-stopped
depends_on:
- db
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./data:/data
environment:
DATABASE_URL: postgresql://docuseal:PASTE_PASSWORD@db:5432/docuseal
db:
image: postgres:17
restart: unless-stopped
volumes:
- ./pg:/var/lib/postgresql/data
environment:
POSTGRES_USER: docuseal
POSTGRES_PASSWORD: PASTE_PASSWORD
POSTGRES_DB: docusealThe 127.0.0.1 prefix matters. Ports that Docker publishes on all addresses skip the host firewall rules, so keeping the app on loopback means only the reverse proxy can reach it.
How do you start the containers and confirm they run?
Pull the images and start them in the background, then ask the app for a response on the loopback port.
docker compose pull
docker compose up -d
docker compose ps
docker compose logs --tail 30 app
curl -I http://127.0.0.1:3000A 200 or a redirect to the setup page means Rails is serving requests. On the first start DocuSeal creates its tables, so give it half a minute before the curl test. Uploaded documents and signed PDFs land in /opt/docuseal/data, and the database files in /opt/docuseal/pg.
How do you publish DocuSeal over HTTPS with Caddy?
Caddy requests and renews a certificate for you, so a three-line site block is all it takes. Install Caddy as shown in the Caddy HTTPS tutorial, then replace the default content of /etc/caddy/Caddyfile:
sign.example.net {
encode gzip
request_body {
max_size 50MB
}
reverse_proxy 127.0.0.1:3000
}The body limit keeps very large uploads in check while still allowing long contracts. Validate and reload:
sudo caddy validate --config /etc/caddy/Caddyfile
sudo systemctl reload caddyOpen the web ports in the OS firewall. On Ubuntu and Debian:
sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enableOn Rocky Linux and AlmaLinux:
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reloadWhat happens on the first visit?
Browse to https://sign.example.net and DocuSeal shows a setup form for the first user, company name and the public app URL. Use the HTTPS address there, because DocuSeal writes that URL into the links it sends to signers. That first account becomes the administrator, and further team members are invited from the settings area rather than signing up on their own.
Next, upload a PDF, drag signature, date and text fields onto it, and save it as a template. Send a test request to an address you own to see the full flow from invitation to completed, signed PDF with its audit log.
How do signing invitations get sent by email?
DocuSeal needs an SMTP account to deliver invitations, reminders and completed copies. Enter the server, port, username, password and sender address under the email settings of the admin area, then press the test button.
Use an authenticated relay on port 587 with STARTTLS: a transactional mail service or your own mailbox provider. Do not count on sending directly from the server on port 25; ask support with a ticket before planning any direct delivery from the VPS. The SMTP relay guide explains how to pick a relay and set SPF and DKIM for example.net so the messages are trusted by inboxes.
How do you back up the documents and database?
Two things hold everything: the PostgreSQL database and the data folder with the PDF files. A nightly dump plus a copy of the folder is enough to rebuild the service on another server.
cd /opt/docuseal
docker compose exec -T db pg_dump -U docuseal docuseal | gzip > ~/docuseal-$(date +%F).sql.gz
sudo tar czf ~/docuseal-files-$(date +%F).tar.gz dataMove both archives off the server with restic, rclone or rsync, and consider the optional daily backups add-on described in daily backups as a second layer. Signed contracts are often legal records, so test a restore once by loading the dump into a fresh container.
How do you upgrade DocuSeal later?
Pull the new image and recreate the container; database migrations run when the app boots.
cd /opt/docuseal
docker compose exec -T db pg_dump -U docuseal docuseal | gzip > ~/pre-upgrade.sql.gz
docker compose pull
docker compose up -d
docker image prune -fIf you prefer a controlled pace, replace latest with a specific release tag and change it on purpose after reading the release notes. Keep PostgreSQL on its major version; moving from 17 to a newer major needs a dump and restore, not just a tag change.
What if a page loads without styles or links point to the wrong host?
Most problems trace back to the app URL or the proxy.
- Links in emails show http or an IP address: correct the app URL in the settings to the HTTPS hostname.
- 502 from Caddy: the container is not listening; run
docker compose psand readdocker compose logs app. - Certificate fails: check that the DNS record resolves to the server with
dig +short sign.example.netand that ports 80 and 443 are open. - Uploads stop at a size: raise
max_sizein the Caddyfile and reload.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about DocuSeal document signing
Does DocuSeal need a lot of memory?
No. One container plus PostgreSQL fits on a 2 GB plan with room for Caddy. Add a swap file on 1 GB plans to absorb short peaks during PDF generation.
Can signers use DocuSeal without an account?
Yes. Signers open a unique link from their email and sign in the browser. Only the people who create templates and send requests need user accounts.
Is SQLite good enough instead of PostgreSQL?
For a single person with a few documents a month, SQLite in the /data folder works. PostgreSQL is the safer choice once a team relies on it, because dumps and restores are simpler and concurrent writes behave better.
Can I keep the signed PDFs on another server too?
Yes. Sync the data folder to remote storage with rclone or rsync on a schedule. BitcoinVPS servers keep data on their local disk, so an off-server copy is your protection against mistakes.
Why does port 3000 not answer from my laptop?
That is intended. The Compose file binds it to 127.0.0.1, so only Caddy on the same server reaches it and the public only sees HTTPS on port 443.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- Metabase dashboards
- Appwrite backend server
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM