Skip to content
Start free

Requirements

Open in ClaudeOpen in ChatGPT

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.

  • 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.

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_ID and DOCSPRING_AWS_ACCESS_KEY_SECRET (or AWS_ACCESS_KEY_ID and AWS_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.

  • 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.com for 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.

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.

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.

ServiceCPUMemoryNotes
web1 core1.5 GBRun 2 or more for high availability. Each handles about 10 requests at once.
worker1 core3 GBRuns Chromium, LibreOffice and the PDF tools. Add workers for more PDFs at once.
worker_gj0.5 core1 GBAccount 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.

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.