Skip to content

Every way to run DocSpring Enterprise: Docker Compose, Kubernetes, AWS ECS, Aptible and Convox - #1

Merged
ndbroadbent merged 12 commits into
mainfrom
overhaul
Dec 3, 2026
Merged

ndbroadbent merged 12 commits into
mainfrom
overhaul

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

One repository for every way to run DocSpring Enterprise.

  • reference/deployment.yml: what every deployment runs (services, the release command, the scheduled tasks, health checks), which scripts/check_deployments checks each folder against.
  • docker-compose/: one server with PostgreSQL, Valkey and Caddy, with setup, update, backup and restore.
  • kubernetes/: a Helm chart with the release command as a hook Job and CronJobs for the scheduled tasks.
  • aws-ecs/: a Terraform module for Fargate with RDS, ElastiCache, S3 and an ALB, and a deploy script that runs the release command first.
  • aptible/: a Dockerfile deploy with supercronic running the scheduled tasks.
  • convox/: the install script on convox_installer 4.0.
  • .agents/skills/: agent skills for installing, upgrading and running DocSpring Enterprise, and an AGENTS.md in each folder.

The docs that describe these are at https://docspring.com/docs/enterprise/ once the docs change ships.

Checks: kubernetes/scripts/validate (helm lint and kubeconform) and scripts/check_deployments pass. The Compose backup and restore of the database, Redis and the uploads volume were run against the Enterprise image.

…eployment.yml says what each deployment runs, scripts/check_deployments and CI check every folder against it, and the Convox install moves into convox/ with run_as_deploy commands, the hourly, daily and weekly tasks and a release step in update.sh
…addy, setup, update, backup and cron scripts
…Jobs for the scheduled tasks, Ingress or HTTPRoute, and a metadata firewall that can give way to a NetworkPolicy
… an ALB, and a deploy script that runs the release command before moving the services
The installer signs in with the AWS CLI's credentials (SSO or a role), sets the DOCSPRING_ settings, builds the first
release and runs the release command with it before starting the services, then checks the install and makes a test
PDF. A rerun skips finished steps and keeps a custom domain and email setup; plan changes nothing. web's health check
is /health/site. The folder gets a README, an AGENTS.md, a .dockerignore that keeps the settings file out of the build
upload, and check_deployments checks the health path and install.rb's release command.
docspring-enterprise-install, -upgrade and -operate in .agents/skills (linked from .claude/skills for Claude Code):
choosing a setup, what an install needs, the release command before services, checks, rollbacks, one-off commands,
settings and common problems. AGENTS.md says going back one release needs no database restore.
… a direct database connection, and remove the admin email and password together

- docker-compose/backup.sh saves Redis (the job queues) too, and the README has the full restore: database, uploads and Redis
- The operate skill says to back up Redis: a database restored without its queues has submissions that stay pending
- The chart's scheduled tasks connect with DATABASE_URL_DIRECT, like GoodJob and the release Job: their overlap check is a PostgreSQL session lock, which a transaction pool doesn't keep
- The Kubernetes README says to remove secrets.adminEmail and secrets.adminPassword together, since the chart refuses an email without a password
…s and uploads, so a job can't finish between the copies and leave a pending submission with no job; the Compose scripts are executable; the license grace period counts from the last passing check
…s the container's first process its reaper can't re-run itself
…b's limit on anonymous requests can't fail the aws-ecs check
@ndbroadbent
ndbroadbent merged commit 2a12342 into main Dec 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant