Log inSign up

Your own e-signature portal with DocuSeal

Install Docker, start the docuseal/docuseal container next to a PostgreSQL container with Docker Compose, bind it to 127.0.0.1:3000 and let Caddy publish it on https://sign.example.net. After you create the first admin account in the browser, add SMTP credentials so DocuSeal can email signing links, and you have a private alternative to hosted signing services.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13, Rocky Linux 9, AlmaLinux 9 · Updated 2026-12-03

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.net pointing at 198.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 version

How 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 24

Copy 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: docuseal

The 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:3000

A 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 caddy

Open the web ports in the OS firewall. On Ubuntu and Debian:

sudo ufw allow OpenSSH
sudo ufw allow 80,443/tcp
sudo ufw enable

On Rocky Linux and AlmaLinux:

sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reload

What 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 data

Move 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 -f

If 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 ps and read docker compose logs app.
  • Certificate fails: check that the DNS record resolves to the server with dig +short sign.example.net and that ports 80 and 443 are open.
  • Uploads stop at a size: raise max_size in 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.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2one team, a handful of documents per day1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4busier teams and many simultaneous signers2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

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.