# Self-host Documenso

> An open-source document signing platform, a self-hosted alternative to DocuSign.

- Page: https://levelrail.com/templates/documenso/
- JSON: https://levelrail.com/templates/documenso.json
- Category: Productivity
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/documenso/documenso
- Upstream docs: https://docs.documenso.com/

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 17

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| database | postgres | 17 | none | documenso_postgresql_data -> /var/lib/postgresql/data |
| documenso | documenso/documenso | v1.12.10 | 3000 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| database | POSTGRES_DB | preset |
| database | POSTGRES_PASSWORD | generated |
| database | POSTGRES_USER | preset |
| documenso | CERT_VALID_DAYS | preset |
| documenso | NEXTAUTH_SECRET | generated |
| documenso | NEXTAUTH_URL | preset |
| documenso | NEXT_PRIVATE_DATABASE_URL | generated |
| documenso | NEXT_PRIVATE_DIRECT_DATABASE_URL | generated |
| documenso | NEXT_PRIVATE_ENCRYPTION_KEY | generated |
| documenso | NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY | generated |
| documenso | NEXT_PRIVATE_SIGNING_LOCAL_FILE_PASSPHRASE | generated |
| documenso | NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH | preset |
| documenso | NEXT_PRIVATE_SIGNING_TRANSPORT | preset |
| documenso | NEXT_PUBLIC_WEBAPP_URL | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy documenso --name my-documenso
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/documenso/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Documenso on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id documenso for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image postgres:17, documenso/documenso:v1.12.10 is what you deploy there.

Self-host Documenso, Documenso docker compose file, deploy Documenso on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
