DocuSeal with Docker Compose
Open source DocuSign alternative. Create, fill, and sign digital documents ✍️ In the project's words: DocuSeal on GitHub (repository description) checked 2026-10-03
Replaces: DocuSign DocuSeal on GitHub (repository description: "Open source DocuSign alternative") checked 2026-10-03
Runs on: amd64, arm64 from each image's registry manifest, checked 2026-10-03; a CPU counts only if every image has a build for it. Image by image
Add DocuSeal to the builder to use your own domain and combine it with other apps in one file.
What DocuSeal needs
Only figures DocuSeal's own documentation publishes, each linked to the page it is on. Where the project gives no number, this page does not invent one.
| Resource | Minimum | Recommended |
|---|---|---|
| RAM | The project publishes no figure | |
| CPU | The project publishes no figure | |
| Disk | The project publishes no figure | |
Which hardware DocuSeal has images for
Read from each image's manifest list in its registry (anonymous, read-only) when this page was built. An app counts for a CPU only if every one of its images lists it.
With SQLite, the default
- x86-64 PC or NAS (
linux/amd64): every image has a build. - Raspberry Pi 4/5, 64-bit OS (
linux/arm64): every image has a build. - Raspberry Pi 3 or Zero 2 W, 32-bit OS (
linux/arm/v7): no image forapp. No image for this hardware; the builder leaves the app out.
| Service | Image | Platforms in the manifest | Digest | Registry | Checked |
|---|---|---|---|---|---|
app | docuseal/docuseal | amd64, arm64 | sha256:6b12e739c3c7c0e824d5e7b08697f724f3fcad848d1a866dc1b6f88ba54e3a02 | registry-1.docker.io | 2026-10-03 |
With PostgreSQL
- x86-64 PC or NAS (
linux/amd64): every image has a build. - Raspberry Pi 4/5, 64-bit OS (
linux/arm64): every image has a build. - Raspberry Pi 3 or Zero 2 W, 32-bit OS (
linux/arm/v7): no image forapp. No image for this hardware; the builder leaves the app out.
| Service | Image | Platforms in the manifest | Digest | Registry | Checked |
|---|---|---|---|---|---|
app | docuseal/docuseal:latest | amd64, arm64 | sha256:6b12e739c3c7c0e824d5e7b08697f724f3fcad848d1a866dc1b6f88ba54e3a02 | registry-1.docker.io | 2026-10-03 |
postgres | postgres:18 | amd64, arm/v5, arm/v7, arm64, 386, ppc64le, riscv64, s390x | sha256:5a5a84b19854a9ffaa54082c166ff4ec27473a361e496e5ea167f298f2da9722 | registry-1.docker.io | 2026-09-25 |
docker-compose.yml
DocuSeal uses SQLite unless DATABASE_URL points it at PostgreSQL or MySQL (the README); its compose file is the PostgreSQL set-up, a postgres:18 service beside the app. Choose before the first start: the two keep separate data, and DocuSeal publishes no way to move between them. Source: DocuSeal README: Docker (SQLite by default, PostgreSQL or MySQL through DATABASE_URL) and Docker Compose checked 2026-10-03; DocuSeal: docker-compose.yml (app, postgres:18 and its own Caddy) checked 2026-10-03
With SQLite, the default
This is exactly what the builder writes for DocuSeal alone on example.org: the official definition with its published ports removed and Caddy added in front. Every ${VARIABLE} is defined in the .env below.
# docker-compose.yml built at dankhost.com for: DocuSeal # Each app block is its official compose definition. Only the names were prefixed with # the app slug (services, containers, volumes, bind folders, .env variables) so any set of # apps can share one file; other differences are listed under "Changed:" in each block. # Only Caddy publishes ports. Secrets live in .env next to this file. services: # ---- Caddy: the one reverse proxy, HTTPS certificates from Let's Encrypt ---- # Source: https://caddyserver.com/docs/running (checked 2026-09-23) # Source: https://github.com/dani-garcia/vaultwarden/wiki/Using-Docker-Compose (checked 2026-09-23) # Caddyfile goes in ./caddy/Caddyfile. Fixed address 172.30.0.2 so apps can trust it exactly. caddy: image: "caddy:2" container_name: "caddy" restart: "unless-stopped" ports: - "80:80" - "443:443" - "443:443/udp" volumes: - "./caddy:/etc/caddy" - "caddy-data:/data" - "caddy-config:/config" networks: proxy: ipv4_address: "172.30.0.2" # ---- DocuSeal (sign.example.org) ---- # Source: https://github.com/docusealco/docuseal/blob/master/README.md (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/docker-compose.yml (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/config/database.yml (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/Dockerfile (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/config/environments/production.rb (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/app/controllers/setup_controller.rb (checked 2026-10-03) # Changed: This is the README's docker run line written as a compose service, the SQLite set-up DocuSeal uses by default. Its '-p 3000:3000' is removed; Caddy reaches docuseal-app:3000 on the proxy network. Its '-v.:/data' (the current folder) becomes ./data, so the database lands in ./docuseal/data/docuseal/db.sqlite3 (the image's WORKDIR is /data/docuseal). # FORCE_SSL=${HOST} is taken from the compose file: with it DocuSeal treats every request as HTTPS behind the proxy (assume_ssl and force_ssl). HOST is sign.example.org in .env. docuseal-app: image: "docuseal/docuseal" container_name: "docuseal-app" volumes: - "./docuseal/data:/data" environment: FORCE_SSL: "${DOCUSEAL_HOST}" networks: proxy: {} networks: # Pinned so the trusted-proxy address given to each app (172.30.0.2) is exact. # If "docker compose up" reports "Pool overlaps", change 172.30.0 here, in Caddy's # ipv4_address and in every trusted-proxy value to a free 172.x.0 range. proxy: ipam: config: - subnet: "172.30.0.0/24" ip_range: "172.30.0.128/25" gateway: "172.30.0.1" volumes: caddy-data: caddy-config:
With PostgreSQL
This is what the builder's code writes for DocuSeal alone on example.org from the project's PostgreSQL setup (the builder on the front page still writes the SQLite version, so copy this one from here): the official definition with its published ports removed and Caddy added in front. Every ${VARIABLE} is defined in the .env below.
# docker-compose.yml built at dankhost.com for: DocuSeal # Each app block is its official compose definition. Only the names were prefixed with # the app slug (services, containers, volumes, bind folders, .env variables) so any set of # apps can share one file; other differences are listed under "Changed:" in each block. # Only Caddy publishes ports. Secrets live in .env next to this file. services: # ---- Caddy: the one reverse proxy, HTTPS certificates from Let's Encrypt ---- # Source: https://caddyserver.com/docs/running (checked 2026-09-23) # Source: https://github.com/dani-garcia/vaultwarden/wiki/Using-Docker-Compose (checked 2026-09-23) # Caddyfile goes in ./caddy/Caddyfile. Fixed address 172.30.0.2 so apps can trust it exactly. caddy: image: "caddy:2" container_name: "caddy" restart: "unless-stopped" ports: - "80:80" - "443:443" - "443:443/udp" volumes: - "./caddy:/etc/caddy" - "caddy-data:/data" - "caddy-config:/config" networks: proxy: ipv4_address: "172.30.0.2" # ---- DocuSeal (sign.example.org) ---- # Source: https://github.com/docusealco/docuseal/blob/master/docker-compose.yml (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/README.md (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/config/environments/production.rb (checked 2026-10-03) # Source: https://github.com/docusealco/docuseal/blob/master/app/controllers/setup_controller.rb (checked 2026-10-03) # Source: https://www.postgresql.org/docs/current/upgrading.html (checked 2026-10-03) # Changed: The compose file's own caddy service (caddy reverse-proxy --from $HOST --to app:3000, publishing 80 and 443) is left out: the builder's one proxy does that job for every app. The app's '3000:3000' port is removed; Caddy reaches docuseal-app:3000 on the proxy network. # The example database password 'postgres' is a generated value in .env, used in POSTGRES_PASSWORD and in DATABASE_URL. HOST, which the file reads from your shell (sudo HOST=your-domain-name.com docker compose up), is sign.example.org in .env. # postgres sits only on the internal network it shares with the app and publishes no port. docuseal-app: depends_on: docuseal-postgres: condition: "service_healthy" image: "docuseal/docuseal:latest" container_name: "docuseal-app" volumes: - "./docuseal/docuseal:/data/docuseal" environment: FORCE_SSL: "${DOCUSEAL_HOST}" DATABASE_URL: "postgresql://postgres:${DOCUSEAL_POSTGRES_PASSWORD}@postgres:5432/docuseal" networks: proxy: {} docuseal-backend: aliases: - "app" docuseal-postgres: image: "postgres:18" container_name: "docuseal-postgres" volumes: - "./docuseal/pg_data:/var/lib/postgresql/18/docker" environment: POSTGRES_USER: "postgres" POSTGRES_PASSWORD: "${DOCUSEAL_POSTGRES_PASSWORD}" POSTGRES_DB: "docuseal" healthcheck: test: - "CMD-SHELL" - "pg_isready -U postgres" interval: "5s" timeout: "5s" retries: 5 networks: docuseal-backend: aliases: - "postgres" networks: # Pinned so the trusted-proxy address given to each app (172.30.0.2) is exact. # If "docker compose up" reports "Pool overlaps", change 172.30.0 here, in Caddy's # ipv4_address and in every trusted-proxy value to a free 172.x.0 range. proxy: ipam: config: - subnet: "172.30.0.0/24" ip_range: "172.30.0.128/25" gateway: "172.30.0.1" docuseal-backend: internal: true volumes: caddy-data: caddy-config:
Caddyfile save as caddy/Caddyfile
Caddy gets and renews the HTTPS certificate for sign.example.org by itself once the DNS record points at your server and ports 80 and 443 reach it.
# Caddyfile built at dankhost.com. Save it as ./caddy/Caddyfile next to docker-compose.yml.
# Caddy gets and renews a Let's Encrypt certificate for each name below by itself,
# once the DNS records point at this server and ports 80 and 443 reach it.
# DocuSeal
sign.example.org {
reverse_proxy docuseal-app:3000
}
.env
With SQLite, the default
DocuSeal needs no secret here; the builder adds nothing you have to fill in by hand.
# .env for DocuSeal, from dankhost.com/app/docuseal/. Nothing here is secret. # Keep this file private (chmod 600). # DocuSeal DOCUSEAL_HOST=sign.example.org
With PostgreSQL
The secret is left blank here on purpose: a password printed on a public page is the same for everyone who copies it. Fill it with random letters and digits as in How to run it.
# .env for DocuSeal, from dankhost.com/app/docuseal/. Fill the blank secret before starting. # Keep this file private (chmod 600). # DocuSeal DOCUSEAL_HOST=sign.example.org # 32 random letters and digits, for example from: tr -dc A-Za-z0-9 </dev/urandom | head -c 32 DOCUSEAL_POSTGRES_PASSWORD=
Changes from the official file
Besides prefixing every service, container, volume, folder and variable with docuseal (so any set of apps can share one file), these are all the differences from what the project documents:
With SQLite, the default
- This is the README's docker run line written as a compose service, the SQLite set-up DocuSeal uses by default. Its '-p 3000:3000' is removed; Caddy reaches docuseal-app:3000 on the proxy network. Its '-v.:/data' (the current folder) becomes ./data, so the database lands in ./docuseal/data/docuseal/db.sqlite3 (the image's WORKDIR is /data/docuseal).
- FORCE_SSL=${HOST} is taken from the compose file: with it DocuSeal treats every request as HTTPS behind the proxy (assume_ssl and force_ssl). HOST is sign.example.org in .env.
Notes for DocuSeal behind the proxy
- Open https://sign.example.org straight after the first start: the setup page there creates the first account, for whoever opens it first, and asks for the app URL: give https://sign.example.org.
- DocuSeal sends signing requests by e-mail only after you add an SMTP server in its settings; without one, share the signing links yourself.
- Neither the README's docker run line nor its compose file sets a restart policy, so after a reboot DocuSeal stays down until docker compose up -d. Add restart: unless-stopped to the service if you want it to come back by itself.
- The image has no tag, which is latest: each pull takes the newest release.
With PostgreSQL
- The compose file's own caddy service (caddy reverse-proxy --from $HOST --to app:3000, publishing 80 and 443) is left out: the builder's one proxy does that job for every app. The app's '3000:3000' port is removed; Caddy reaches docuseal-app:3000 on the proxy network.
- The example database password 'postgres' is a generated value in .env, used in POSTGRES_PASSWORD and in DATABASE_URL. HOST, which the file reads from your shell (sudo HOST=your-domain-name.com docker compose up), is sign.example.org in .env.
- postgres sits only on the internal network it shares with the app and publishes no port.
Notes for DocuSeal behind the proxy
- Open https://sign.example.org straight after the first start: the setup page there creates the first account, for whoever opens it first, and asks for the app URL: give https://sign.example.org.
- postgres:18 keeps its data in /var/lib/postgresql/18/docker, the path the file mounts ./pg_data at.
- The file sets no restart policy on either service, so after a reboot DocuSeal stays down until docker compose up -d. Add restart: unless-stopped to both services if you want them to come back by themselves.
How to run it
With SQLite, the default
- At your DNS provider, add an A record named
signon your domain pointing at the server's public IP address, and forward TCP 80, TCP 443 and UDP 443 to it. - Save the three files in one folder:
docker-compose.ymland.envside by side, the Caddyfile at./caddy/Caddyfile. Replaceexample.orgwith your domain in the Caddyfile, the compose file and the .env, or let the builder do it. - Nothing in
.envneeds filling in;chmod 600 .envall the same. - Start it:
docker compose up -d docker compose logs -f caddy # watch the certificate arrive
- Open the new address (
sign.plus your domain) in a browser and follow the notes above.
With PostgreSQL
- At your DNS provider, add an A record named
signon your domain pointing at the server's public IP address, and forward TCP 80, TCP 443 and UDP 443 to it. - Save the three files in one folder:
docker-compose.ymland.envside by side, the Caddyfile at./caddy/Caddyfile. Replaceexample.orgwith your domain in the Caddyfile, the compose file and the .env. - Fill the blank
DOCUSEAL_POSTGRES_PASSWORDin.env. On the server,tr -dc A-Za-z0-9 </dev/urandom | head -c 32prints 32 random letters and digits. Thenchmod 600 .env. - Start it:
docker compose up -d docker compose logs -f caddy # watch the certificate arrive
- Open the new address (
sign.plus your domain) in a browser and follow the notes above.
Back it up
With SQLite, the default
DocuSeal publishes no backup procedure. With SQLite everything is in ./data: the database (data/docuseal/db.sqlite3) and the uploaded and signed documents.
Below is the BACKUP.md the builder writes next to the compose file above: which of its folders and volumes hold data, what to copy with which container stopped, and a restore check. Pick more apps in the builder and it covers them all in one file.
# BACKUP.md built at dankhost.com for: DocuSeal
What to copy from the docker-compose.yml built with this file, the database dump each project documents (rewritten for the service names in that file), what to copy with which container stopped, and how to check the result. Run every command in the folder that holds docker-compose.yml.
The folders are owned by the containers' users: put sudo in front of tar if it says "Permission denied". Named volumes live under /var/lib/docker/volumes, not next to the compose file, so they are copied through a throwaway ubuntu container (Docker's documented --volumes-from method). tar makes a full copy each run; for large folders an incremental tool (restic, borg, rsync) saves time and space.
Never run "docker compose down -v" on this file: it deletes the named volumes of every app in it.
## Before you start
BACKUP=/mnt/backup/selfhost # change this: a disk or machine other than this server's system disk
mkdir -p "$BACKUP"
## Every time: the three stack files
tar czf "$BACKUP/stack-files.tar.gz" docker-compose.yml .env caddy
.env holds the database passwords and secret keys the apps were set up with; keep this archive as private as the data.
## Caddy (the reverse proxy)
Caddy's docs: 'The data directory must not be treated as a cache.' It holds the TLS certificates and their private keys; without it Caddy has to ask Let's Encrypt for every certificate again.
- caddy-data (named volume, /data in caddy)
BACK UP: TLS certificates, private keys, OCSP staples.
- caddy-config (named volume, /config in caddy)
SKIP: the last active configuration, kept for 'caddy run --resume', which this setup does not use: it starts from the Caddyfile.
- ./caddy (/etc/caddy in caddy)
IN stack-files.tar.gz: the Caddyfile, copied with the stack files above.
Copy (Caddy keeps serving while you copy):
docker run --rm --volumes-from caddy -v "$BACKUP":/backup ubuntu tar cvf /backup/caddy-data.tar /data
Restore check:
tar tf "$BACKUP/caddy-data.tar" > /dev/null && echo OK
docker run --rm --volumes-from caddy -v "$BACKUP":/backup ubuntu bash -c "cd /data && tar xvf /backup/caddy-data.tar --strip 1"
Sources:
- Caddy docs: Conventions, Data directory: https://caddyserver.com/docs/conventions#data-directory (checked 2026-09-24)
- Docker docs: Volumes, Back up, restore, or migrate data volumes: https://docs.docker.com/engine/storage/volumes/#back-up-restore-or-migrate-data-volumes (checked 2026-09-24)
## DocuSeal
DocuSeal publishes no backup procedure. With SQLite everything is in ./data: the database (data/docuseal/db.sqlite3) and the uploaded and signed documents.
What this compose mounts:
- ./docuseal/data (/data in docuseal-app)
BACK UP: db.sqlite3 (templates, submissions, users, audit trail) and the stored documents and signatures.
1. Stop docuseal-app. Stopping it keeps the SQLite database from changing mid-copy.
docker compose stop docuseal-app
2. Copy while docuseal-app is stopped:
tar czf "$BACKUP/docuseal-data.tar.gz" ./docuseal/data
3. Start it again:
docker compose start docuseal-app
Restore check:
tar tzf "$BACKUP/docuseal-data.tar.gz" > /dev/null && echo OK
Put a copy back (with docuseal-app stopped):
tar xzf "$BACKUP/docuseal-data.tar.gz" # recreates ./docuseal/data; move the old folder aside first
Stop it, put ./docuseal/data back, start it.
Sources:
- DocuSeal: config/database.yml (SQLite at $WORKDIR/db.sqlite3 when DATABASE_URL is empty): https://github.com/docusealco/docuseal/blob/master/config/database.yml (checked 2026-10-03)
- Docker docs: Volumes, Back up, restore, or migrate data volumes: https://docs.docker.com/engine/storage/volumes/#back-up-restore-or-migrate-data-volumes (checked 2026-10-03)
With PostgreSQL
DocuSeal publishes no backup procedure. With PostgreSQL the database is a pg_dump of the postgres service; the documents are in ./docuseal.
Below is the BACKUP.md for the PostgreSQL version of the compose file above, written by the same code as the builder's: which of its folders and volumes hold data, the dump command the project documents, rewritten for this file's service names, what to copy with which container stopped, and a restore check.
# BACKUP.md built at dankhost.com for: DocuSeal
What to copy from the docker-compose.yml built with this file, the database dump each project documents (rewritten for the service names in that file), what to copy with which container stopped, and how to check the result. Run every command in the folder that holds docker-compose.yml.
The folders are owned by the containers' users: put sudo in front of tar if it says "Permission denied". Named volumes live under /var/lib/docker/volumes, not next to the compose file, so they are copied through a throwaway ubuntu container (Docker's documented --volumes-from method). tar makes a full copy each run; for large folders an incremental tool (restic, borg, rsync) saves time and space.
Never run "docker compose down -v" on this file: it deletes the named volumes of every app in it.
## Before you start
BACKUP=/mnt/backup/selfhost # change this: a disk or machine other than this server's system disk
mkdir -p "$BACKUP"
## Every time: the three stack files
tar czf "$BACKUP/stack-files.tar.gz" docker-compose.yml .env caddy
.env holds the database passwords and secret keys the apps were set up with; keep this archive as private as the data.
## Caddy (the reverse proxy)
Caddy's docs: 'The data directory must not be treated as a cache.' It holds the TLS certificates and their private keys; without it Caddy has to ask Let's Encrypt for every certificate again.
- caddy-data (named volume, /data in caddy)
BACK UP: TLS certificates, private keys, OCSP staples.
- caddy-config (named volume, /config in caddy)
SKIP: the last active configuration, kept for 'caddy run --resume', which this setup does not use: it starts from the Caddyfile.
- ./caddy (/etc/caddy in caddy)
IN stack-files.tar.gz: the Caddyfile, copied with the stack files above.
Copy (Caddy keeps serving while you copy):
docker run --rm --volumes-from caddy -v "$BACKUP":/backup ubuntu tar cvf /backup/caddy-data.tar /data
Restore check:
tar tf "$BACKUP/caddy-data.tar" > /dev/null && echo OK
docker run --rm --volumes-from caddy -v "$BACKUP":/backup ubuntu bash -c "cd /data && tar xvf /backup/caddy-data.tar --strip 1"
Sources:
- Caddy docs: Conventions, Data directory: https://caddyserver.com/docs/conventions#data-directory (checked 2026-09-24)
- Docker docs: Volumes, Back up, restore, or migrate data volumes: https://docs.docker.com/engine/storage/volumes/#back-up-restore-or-migrate-data-volumes (checked 2026-09-24)
## DocuSeal
DocuSeal publishes no backup procedure. With PostgreSQL the database is a pg_dump of the postgres service; the documents are in ./docuseal.
What this compose mounts:
- ./docuseal/docuseal (/data/docuseal in docuseal-app)
BACK UP: uploaded and signed documents and their attachments.
- ./docuseal/pg_data (/var/lib/postgresql/18/docker in docuseal-postgres)
COVERED BY THE COMMAND BELOW: PostgreSQL's data files; the pg_dump below is the copy to keep.
1. Database dump for docuseal-postgres:
docker compose exec -T docuseal-postgres pg_dump -U postgres docuseal > "$BACKUP/docuseal.sql"
pg_dump with the user and database of the file: postgres and docuseal.
2. Copy (DocuSeal keeps running):
pg_dump is consistent while the app runs: the dump is a snapshot of the database at the moment it started (PostgreSQL docs).
tar czf "$BACKUP/docuseal-docuseal.tar.gz" ./docuseal/docuseal
Restore check:
grep -c 'PostgreSQL database dump complete' "$BACKUP/docuseal.sql" # 1 means pg_dump finished
tar tzf "$BACKUP/docuseal-docuseal.tar.gz" > /dev/null && echo OK
Put a copy back (with DocuSeal stopped):
tar xzf "$BACKUP/docuseal-docuseal.tar.gz" # recreates ./docuseal/docuseal; move the old folder aside first
Into a fresh database, before DocuSeal starts against it:
docker compose up -d docuseal-postgres
docker compose exec -T docuseal-postgres psql -U postgres docuseal < "$BACKUP/docuseal.sql"
Put ./docuseal/docuseal back, then:
docker compose up -d
Sources:
- PostgreSQL docs: pg_dump (consistent backups while the database is in use): https://www.postgresql.org/docs/current/app-pgdump.html (checked 2026-10-03)
- Docker docs: Volumes, Back up, restore, or migrate data volumes: https://docs.docker.com/engine/storage/volumes/#back-up-restore-or-migrate-data-volumes (checked 2026-10-03)
Update it
With SQLite, the default
What docker compose pull does depends only on how each image line in the compose file above is tagged. For DocuSeal as this page writes it:
| Service | Image | How it is pinned | What docker compose pull does |
|---|---|---|---|
caddy | caddy:2 | Major version only (tag 2) | Takes the newest image tagged 2: minor and patch releases of 2, never 3. A new major version needs a tag edit. |
docuseal-app | docuseal/docuseal | Not pinned: no tag, which means latest | Moves to the newest image published as latest, which can be a new major version. |
What DocuSeal's docs say about updating
DocuSeal publishes no update procedure for this setup; the steps below are Docker's generic method.
The steps
- Back up first, as in Back it up above. An update can migrate DocuSeal's data on its first start; the copy is the way back.
- Download the new images. Running containers are not touched yet:
docker compose pull
- Recreate the containers whose image changed. Volumes and bind-mounted folders stay as they are:
docker compose up -d
- Watch DocuSeal start (Ctrl+C stops following the log, not the app):
docker compose logs -f docuseal-app
- Optional: remove the old images the pull left without a tag. This covers every stack on the machine, not only this one:
docker image prune
With PostgreSQL
What docker compose pull does depends only on how each image line in the compose file above is tagged. For DocuSeal as this page writes it:
| Service | Image | How it is pinned | What docker compose pull does |
|---|---|---|---|
caddy | caddy:2 | Major version only (tag 2) | Takes the newest image tagged 2: minor and patch releases of 2, never 3. A new major version needs a tag edit. |
docuseal-app | docuseal/docuseal:latest | Not pinned: moving tag latest | Moves to the newest image published as latest, which can be a new major version. |
docuseal-postgres database | postgres:18 | Major version only (tag 18) | Takes the newest image tagged 18: minor and patch releases of 18, never 19. A new major version needs a tag edit. |
Do not raise the major version of docuseal-postgres by editing its tag. Keep its tag, 18, as it is when you update DocuSeal.
PostgreSQL's docs: a new major version may change how data is stored on disk, so a data folder written by an older major version will not start under a newer one (the server refuses it). Moving needs a dump and restore (pg_dumpall, then load the dump into the new version) or pg_upgrade. Minor releases of the same major version never change the storage format. Source: PostgreSQL docs: Upgrading a PostgreSQL Cluster checked 2026-09-30
What DocuSeal's docs say about updating
DocuSeal publishes no update steps of its own. For the PostgreSQL set-up the database's own rule applies, from PostgreSQL's Upgrading a PostgreSQL Cluster page:
- DocuSeal and PostgreSQL are updated separately, one tag at a time. docuseal/docuseal:latest takes each new DocuSeal release on docker compose pull; the postgres tag, 18, takes every 18.x release, and PostgreSQL says minor releases never change the storage format, so that is safe.
- A new PostgreSQL major version cannot open the data of the old one: the page says to dump and restore it (or use pg_upgrade). This file mounts the data at /var/lib/postgresql/18/docker, a path with the version in it, so the mount changes with the tag. With this file: stop DocuSeal, dump, check the dump, move the data folder aside, edit the tag and the mount path, start the database alone, load the dump, start the rest:
docker compose stop docuseal-app docker compose exec -T docuseal-postgres pg_dump -U postgres docuseal > docuseal-pg18.sql grep -c 'PostgreSQL database dump complete' docuseal-pg18.sql # must print 1 before you go on docker compose stop docuseal-postgres && mv docuseal/pg_data docuseal/pg_data-18 docker compose up -d docuseal-postgres # after editing the tag and /var/lib/postgresql/18/docker to the new version until docker compose exec -T docuseal-postgres pg_isready -h 127.0.0.1 -U postgres; do sleep 2; done # waits until the first-start setup is over docker compose exec -T docuseal-postgres psql -U postgres -d docuseal --set ON_ERROR_STOP=on < docuseal-pg18.sql docker compose up -d
- Keep docuseal/pg_data-18 until DocuSeal has run well for a while: putting it back with the old tag is the way back.
The steps
- Back up first, as in Back it up above. An update can migrate DocuSeal's data on its first start and its database with it; the copy is the way back.
- Download the new images. Running containers are not touched yet:
docker compose pull
- Recreate the containers whose image changed. Volumes and bind-mounted folders stay as they are:
docker compose up -d
- Watch DocuSeal start (Ctrl+C stops following the log, not the app):
docker compose logs -f docuseal-app
- Optional: remove the old images the pull left without a tag. This covers every stack on the machine, not only this one:
docker image prune
Sources
Every page below was fetched on the date shown.
- DocuSeal on GitHub (repository description) checked 2026-10-03 (what it does)
- DocuSeal on GitHub (repository description: "Open source DocuSign alternative") checked 2026-10-03 (what it replaces)
- DocuSeal README: Docker (SQLite by default, PostgreSQL or MySQL through DATABASE_URL) and Docker Compose checked 2026-10-03 (compose definition and proxy settings, PostgreSQL version)
- DocuSeal: docker-compose.yml (app, postgres:18 and its own Caddy) checked 2026-10-03 (compose definition and proxy settings, PostgreSQL version)
- DocuSeal: config/database.yml (SQLite at $WORKDIR/db.sqlite3 when DATABASE_URL is empty) checked 2026-10-03 (compose definition and proxy settings, backup plan)
- DocuSeal: Dockerfile (WORKDIR /data/docuseal, port 3000) checked 2026-10-03 (compose definition and proxy settings)
- DocuSeal: config/environments/production.rb (FORCE_SSL sets assume_ssl and force_ssl) checked 2026-10-03 (compose definition and proxy settings, PostgreSQL version)
- DocuSeal: setup_controller.rb (first account and app URL, only while no user exists) checked 2026-10-03 (compose definition and proxy settings, PostgreSQL version)
- Caddy docs: Keep Caddy running (Docker Compose section) checked 2026-09-23 (Caddy)
- Vaultwarden wiki: Caddy with HTTP challenge (uses the caddy:2 image) checked 2026-09-23 (Caddy)
- Docker docs: Volumes, Back up, restore, or migrate data volumes checked 2026-10-03 (backup plan, PostgreSQL backup plan)
- Caddy docs: Conventions, Data directory checked 2026-09-24 (backup plan)
- Docker docs: docker compose pull checked 2026-09-30 (update steps)
- Docker docs: docker compose up (recreates changed containers, keeps volumes) checked 2026-09-30 (update steps)
- Docker docs: docker image prune checked 2026-09-30 (update steps)
- PostgreSQL docs: Upgrading a PostgreSQL Cluster checked 2026-10-03 (PostgreSQL version, PostgreSQL update notes, database upgrade)
- PostgreSQL docs: pg_dump (consistent backups while the database is in use) checked 2026-10-03 (PostgreSQL backup plan)