Requirements
DocSpring Enterprise is one Docker image. It runs on any platform that runs Linux containers, on amd64 or arm64 servers, and needs these services alongside it.
Services
Section titled “Services”- PostgreSQL 14 or later. We run PostgreSQL 17 and recommend it for new installs. A managed database (Amazon RDS, Google Cloud SQL, Azure Database for PostgreSQL) is the easiest to run. The release command creates the schema, so the database user needs to own the database.
- Redis 6.2 or later, or Valkey, the open source fork of Redis. Sidekiq keeps its job queues
there, so don’t use an instance that evicts keys: set
maxmemory-policy noeviction. - File storage for template files and generated PDFs:
- An Amazon S3 bucket (recommended), or
- A Google Cloud Storage bucket, or
- For a one-server install, a directory on that server (a Docker volume).
- An email service for sign-in emails, notifications and signature requests: an SMTP server, or Postmark, SendGrid, Mailgun or Amazon SES. See Email notifications.
File storage
Section titled “File storage”Create a private bucket. Browsers upload template files straight to it, so give it a CORS rule for your DocSpring address. For S3:
[ { "AllowedMethods": ["GET", "PUT", "POST"], "AllowedHeaders": [ "Authorization", "cache-control", "x-requested-with", "content-type" ], "AllowedOrigins": ["https://docspring.example.com"], "MaxAgeSeconds": 3000 }]Set DOCSPRING_AWS_UPLOADS_S3_BUCKET and DOCSPRING_AWS_UPLOADS_S3_REGION. For credentials, use one of:
- An IAM role for the task or pod: an ECS task role, EKS Pod Identity or IAM roles for service accounts (IRSA).
- An access key for an IAM user, in
DOCSPRING_AWS_ACCESS_KEY_IDandDOCSPRING_AWS_ACCESS_KEY_SECRET(orAWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY).
Not an EC2 instance profile: the containers block the cloud metadata address it’s read from, so nothing in them can read the server’s credentials (Container security). Give the role or user access to the bucket only.
For Google Cloud Storage, see DOCSPRING_GCS_UPLOADS_BUCKET in the
environment variables.
Network
Section titled “Network”- Inbound: HTTPS to the web service, through a load balancer or reverse proxy that handles TLS and sets
X-Forwarded-Proto. Allow request bodies up to 110 MB (template uploads and large API requests), and give it a timeout of at least 240 seconds: some requests, such as the Admin API’s account imports and exports, run for up to 210 seconds. - Outbound: HTTPS to
api.docspring.comfor the license check (below), and access to your database, Redis, file storage and email service. Webhooks and integrations need outbound HTTPS to the addresses your users configure.
The license check
Section titled “The license check”DocSpring Enterprise checks its license with https://api.docspring.com about once an hour. If no check has passed
for 30 days (counted from the last check that passed, or from the first failed check on a new install that has never
reached it), the license is disabled and DocSpring stops processing documents until a check passes. The admin pages
show a banner for a license problem: the check hasn’t reached us for a day, a key is expiring or has expired, or the
license was revoked. While the check can’t reach us or a key is expiring, an install with an email service emails its
admin users well before anything stops. A revoked license stops processing at the next check. The check sends your license ID and which service is
asking (web or worker), with no documents, usage, submission data or personal information. Installs that can’t make
outbound connections (air-gapped networks) use a perpetual license key, which skips the check and expires with your
term: you get a new key when you renew. After it expires, DocSpring keeps working for 3 months while every admin page
shows when it will stop, then stops processing documents until you install the new key.
Contact us to arrange one.
CPU and memory
Section titled “CPU and memory”DocSpring runs three services: web, worker and worker_gj (Services). A small
install runs one of each. These are starting points; watch the memory each container uses and adjust.
| Service | CPU | Memory | Notes |
|---|---|---|---|
web | 1 core | 1.5 GB | Run 2 or more for high availability. Each handles about 10 requests at once. |
worker | 1 core | 3 GB | Runs Chromium, LibreOffice and the PDF tools. Add workers for more PDFs at once. |
worker_gj | 0.5 core | 1 GB | Account exports and imports. |
A one-server install with Docker Compose needs at least 4 CPUs, 8 GB of memory and 50 GB of disk, more if it keeps files on the server. AI field detection needs about 1 GB more memory in each worker.
Your license and registry credentials
Section titled “Your license and registry credentials”When you sign up for DocSpring Enterprise, we email you a license key (DOCSPRING_LICENSE) and credentials for our
Docker registries. See The Docker image.