Decidim on Docker vs Kubernetes vs VMs

Decidim's documented install paths are Docker and a manual Rails install on a server or VM. This page compares them on upgrades, backups, availability and skills, and sets out what a Kubernetes deployment would need to confirm before anyone commits to it.

On this page

Decidim deployment options: which model fits your team

A public body or civic team that must run Decidim inside its own infrastructure has two documented install paths: Docker and a manual installation on virtual machines. Docker suits teams that already operate containers and want Decidim packaged and deployed the way they handle their other services. A manual install on VMs suits teams with Linux, Rails and PostgreSQL operations skills who want direct control over the application server, background jobs, file storage and database upgrades. Kubernetes is not a documented Decidim install path, so a Kubernetes deployment is a custom build. Before you plan around it, confirm with the Decidim Association and your implementation partner who will write and maintain the manifests or charts, who tests them against each minor release, and who owns the upgrade path.

The Decidim version sets constraints that apply to every model. Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, v0.31 uses Ruby 3.3.4 and Node 22.14.x, and the manual guide uses PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS. Until version 1.0, only the 0.32.x and 0.31.x lines receive security updates, so your upgrade path has to exist before go-live. The Decidim update guide asks you to move one minor version at a time, read each release's upgrade instructions and back up the database first. In a Docker or Kubernetes setup, check how image tags map to these versions and who rebuilds images for security patches. On VMs, your team applies operating system and runtime patches directly, which adds work but keeps the change path short.

How Docker and VM installs compare on effort and control

This table compares the Docker, Kubernetes and virtual machine routes for Decidim across install method, runtime pins, database, background jobs, file storage, SMTP, upgrades, backups, skills and switching cost. Read each row with the image tag or OS package set you choose in mind, because those choices set the Ruby, Node and PostgreSQL versions. The main takeaway is that Docker and VMs have documented install paths, while Kubernetes needs your own chart and written confirmation before you plan around it.

Decision pointDockerKubernetesVirtual machines
Install methodDocumented Docker install. The image you pull determines most of the runtime.Not one of the documented install paths. Confirm whether the vendor or community publishes a supported chart.Documented manual install as a Rails application, with the guide written for Ubuntu 24.04.3 LTS.
Runtime pinsSet by the image tag. Confirm it pins Ruby 3.4.7 and Node 22.14.x for v0.32, or Ruby 3.3.4 and Node 22.14.x for v0.31.Set by the image you build or pull. Confirm the Ruby and Node versions match the release you target.Set by your OS packages or version manager. Confirm Ruby and Node match the release you target.
DatabaseConfirm whether the image bundles PostgreSQL or expects an external instance, and which version it runs.Confirm whether PostgreSQL runs outside the cluster or under an operator, and which version it runs.The manual guide uses PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS. Confirm the same version in your build.
Background jobs and SMTPProduction setups configure ActiveJob and SMTP. Confirm worker containers, queue backend and sender relay.Confirm whether workers run as separate workloads, how the queue backend is provisioned, and where SMTP credentials are stored.Production setups configure ActiveJob and SMTP. Confirm the worker service, restart policy and relay access on each host.
File storageProduction setups configure ActiveStorage. Confirm whether uploads sit on a volume or object storage.Confirm a persistent or object storage backend in the chart, and who owns its backups.Host path or storage service you provision. Confirm disk sizing, permissions and backup schedule.
Upgrade effortUpgrade one minor version at a time, back up the database first, and follow each release's steps. Image tags change with each step.Same one-minor-at-a-time rule applies. Confirm how your chart runs database migrations before a cutover.Same one-minor-at-a-time rule applies. Plan database migrations and a rollback path on the host.
Backup scopeDatabase, uploaded files, environment settings and secrets. Confirm the image holds no state you have not captured.Database, file storage volumes, secrets and chart values. Confirm snapshot consistency with the database.Database, uploaded files, application config and host-level settings. Confirm restore tests cover all four.
Skills neededContainer operations, Rails configuration and PostgreSQL administration.Cluster operations, Helm, storage classes, plus Rails and PostgreSQL basics. Confirm your team's chart skills.Linux administration, Rails deployment, PostgreSQL administration and manual OS patching.
Cost of switching laterData is typically a PostgreSQL dump plus file store. Confirm the move keeps the same Decidim version.Re-platforming means new chart values, storage classes and secrets. Plan a dated cutover and a restore test.Re-platforming means new host builds, package pins and service definitions. Plan a restore test before cutover.

What runs in a Decidim production setup

A Decidim production setup is a set of components that must each be placed, sized and kept available, whichever runtime you choose. Some run on the Docker host, VM or cluster, and others are external services you configure but do not operate. Confirm the high availability position of each one before you compare runtimes, because the answers decide how much of the work the runtime takes off your team.

Rails app and ActiveJob workers

Decidim is a Ruby on Rails application, so the web process and the ActiveJob background workers come from one codebase but run as separate processes that you can scale on their own. In a Docker or Kubernetes setup each runs in containers on the host or cluster, and on a VM they run as services on the machine. Confirm that at least one redundant web instance and one worker can run on different hosts or nodes, that replacing a node does not drop queued jobs, and that the Ruby runtime matches the release, since v0.32 uses Ruby 3.4.7 and v0.31 uses Ruby 3.3.4.

Decidim installation docs

PostgreSQL database

Decidim stores its data in PostgreSQL, so the database shapes how safe your upgrades and restores are. The manual installation guide uses PostgreSQL 17.4 or later on Ubuntu 24.04.3 LTS, so confirm the version your platform team will support before you pick a runtime. Where the database runs determines your recovery path: a container with a persistent volume, a VM with a managed disk, or a database service outside the host. Confirm the failover model, who runs the backups and whether you can restore a copy, because the update guide asks you to back up the database before every upgrade.

Decidim update guide

File storage for uploads

Decidim keeps uploaded files, such as attachments added by participants and staff, through ActiveStorage. Production setups configure where those files live, so the choice is local disk on the host or VM, shared storage mounted across nodes, or an object store service outside the runtime. Local disk ties files to one machine, so shared storage is needed for redundancy, and every web and worker process must read the same store. Confirm that backups cover the files as well as the database, because a database dump does not contain files kept on disk or in an object store.

SMTP for notifications

Production setups configure SMTP so Decidim can send email to participants and administrators. The mail relay is usually an external service, so it sits outside the Docker host, VM or cluster, while the sending settings and credentials live in your configuration. Confirm the relay provider's availability and sending limits, the DNS records your mail team requires for the sender domain, and that the web application keeps serving pages if the relay is unreachable. Also confirm who owns the SMTP credentials, how they rotate, and where your runtime stores them.

Maps and geocoding providers

Map views and address lookups depend on a maps and geocoding provider that the production setup must configure. The provider is an external service in every runtime, so the Docker host, VM or cluster only holds the keys and settings that point to it. Confirm that your organization has approved the provider, that its terms allow the addresses and location data Decidim sends, and what participants see when the provider is unreachable. Also confirm that API keys are stored as secrets and that the provider's usage limits cover peak traffic during a participatory process.

Social login providers

Decidim supports Facebook, Twitter, Google and Decidim-to-Decidim OAuth 2.0 login out of the box, configurable globally or per organization, and any other OmniAuth strategy can be added as a custom provider. Each provider is an external identity service, so its availability sits outside your runtime, while each callback URL must match the public address your reverse proxy or load balancer serves. Confirm which providers your organization needs, who holds the app registrations and client secrets, and how participants log in if one provider is down. Custom OmniAuth strategies add code your team must review and maintain after every Decidim upgrade.

Decidim social providers docs

How requests, jobs and data move in each deployment

Requests start with participants, who reach the reverse proxy first. The proxy choice belongs to the operator, and this diagram shows it as a placeholder, as it does file storage. The proxy forwards traffic to the Decidim application, which passes background jobs to workers through ActiveJob. The application and workers both read and write PostgreSQL, and uploads go to file storage. SMTP, maps and geocoding, and login providers sit outside the boundary, so check each outbound connection and its credentials. The boundary applies to a Docker host, a VM or a Kubernetes cluster alike, since the same components sit inside the client's own infrastructure.

Components sit inside the client boundary; mail, maps and login sit outside.

What a Kubernetes deployment of Decidim would need to confirm

A Kubernetes deployment of Decidim is a custom build, and whoever builds it owns it. Decidim's documented install paths are a manual Rails installation and Docker, so do not assume an official Helm chart, Kubernetes manifest or container image exists. Confirm that first, along with which Decidim version any such artifact tracks. Then settle who builds and signs the container images, who rebuilds them when a patch ships, and where those images are stored. Decidim's security policy gives implementers a grace period of 2 months for standard vulnerabilities and 4 months for critical ones before details are disclosed, so the rebuild and rollout path has to fit inside those windows. Write the owner, the rebuild trigger and the target window into the written scope before any cluster design starts.

Two decisions shape the rest of the design: where PostgreSQL runs and which storage class backs uploads. Decidim is built on Ruby on Rails and PostgreSQL, and the manual installation guide uses PostgreSQL 17.4 or later as its reference. If the database runs inside the cluster, your team owns its persistent volumes, backups, failover and minor version upgrades. If it runs outside the cluster, a database service or DBA team takes on those duties, but you must manage the network path and credentials between them. Production setups also configure ActiveStorage for file storage, so confirm the storage class, its access mode and whether its snapshot and replication behavior matches your backup policy. Ask the storage team to demonstrate a restore of an uploaded file, not only a successful backup job.

Upgrades need the most careful plan. Decidim's update guide says to move one minor version at a time (0.29 to 0.30 before 0.31), to follow each release's upgrade instructions because some change database structures, and to back up the database first. In Kubernetes, that means deciding where migrations run as a controlled job before new pods receive traffic, who approves that job, and how a failed migration is rolled back when the old version cannot read the new schema. Confirm whether the database backup runs in the same pipeline as the migration. Finally, do not carry over requirements from other Kubernetes-based public sector products. openDesk, for example, lists a Kubernetes version floor, a specific ingress controller, cert-manager and an RWO volume provisioner. None of these should be assumed for Decidim until your team has checked them against Decidim's own requirements.

Upgrades, backups and patch windows for each model

This table compares how Docker, Kubernetes and virtual machines handle upgrades, backups, security patching, monitoring, rollback and skills for Decidim. Read the Decidim rules first: before version 1.0, only the last two minor versions (0.32.x and 0.31.x) receive security updates, and the database must be backed up before any upgrade. Confirm monitoring tools and file backup methods with your team or implementer before you commit to a model.

AreaDockerKubernetesVirtual machines
Upgrade pathUpgrade one minor version at a time, following each release's upgrade instructions for the container image.Upgrade one minor version at a time, following each release's instructions for the deployment.Upgrade one minor version at a time, following each release's instructions directly on the host.
Backup scopeBack up the database before any upgrade. Confirm where uploaded files are stored and how they are backed up.Back up the database before any upgrade. Confirm the backup method for persistent volumes or object storage.Back up the database before any upgrade. Confirm the host file storage path and its backup method.
Security patchingRebuild and redeploy images for each 0.32.x or 0.31.x security release on a set cadence.Redeploy security releases through the cluster, and patch nodes and the cluster on a separate schedule.Apply security releases and host operating system patches yourself, and confirm who owns each cycle.
Patch deadlineStandard fixes within 2 months and critical fixes within 4 months, before details are disclosed.Standard fixes within 2 months and critical fixes within 4 months, before details are disclosed.Standard fixes within 2 months and critical fixes within 4 months, before details are disclosed.
Rollback after a failed upgradeRedeploy the previous image, then restore the pre-upgrade database backup if migrations ran.Roll back the deployment revision, then restore the pre-upgrade database backup if migrations ran.Redeploy the previous application code on the host, then restore the pre-upgrade database backup.
MonitoringConfirm container log and metric collection with the implementer.Confirm pod, node and application log and metric collection with the implementer.Confirm host and application log collection with your team or implementer.
Skills neededContainer image builds, environment configuration and Rails database migrations.Cluster operations, deployment manifests and Rails database migrations.Linux host administration, web server setup and Rails database migrations.

How a Decidim minor upgrade runs step by step

This sequence keeps a Decidim minor upgrade recoverable and checked at each hop, whichever runtime you run. Each step closes with a record your platform, security and product owners can review before the next one starts. The same order applies to a Docker image rebuild, a Kubernetes rollout and an in-place VM upgrade, and step five shows where they differ.

  1. Confirm the running version is supported

    The platform team reads the version the running application reports and compares it with the upgrade target. Decidim supports only the last two minor versions with security updates until version 1.0, currently 0.32.x and 0.31.x, so 0.30.x and earlier are out of support, and a site there moves up through each minor release, starting with the next one. The step is done when the team has written down the current version, the target, and the minor releases in between.

  2. Check Ruby and Node pins for the target

    Before any build, the platform engineer looks up the Ruby and Node versions the target release expects. Decidim v0.32 requires Ruby 3.4.7 and Node 22.14.x, and v0.31 uses Ruby 3.3.4 and Node 22.14.x, so a site moving through both lines changes its Ruby pin along the way. The Docker base image, the Kubernetes image or the VM runtime must match those pins, and the build should fail on a mismatch. The step is done when a build of the target version runs on a pinned runtime in a non-production environment.

  3. Back up the PostgreSQL database

    The database owner takes a PostgreSQL backup before any change, because the update guide asks for one first and some releases change database structures. Uploaded files sit in the configured file storage, so the backup plan should cover them as well. The step is done when a restore of the backup into a separate instance completes and the team has recorded the restored schema version. Confirm retention and encryption requirements with your own data governance team.

  4. Upgrade one minor version at a time

    On a staging copy of production, the platform engineer upgrades one minor version at a time, for example 0.29 to 0.30 before 0.31. Each hop follows that release's upgrade instructions, since some releases change database structures and the order of migrations matters. (Illustrative: a site on 0.29 runs the 0.30 migrations, passes checks, and only then starts 0.31.) The step is done when each hop finishes its migrations, the application boots, and smoke tests pass before the next hop begins.

  5. Replay the tested path in production

    Once staging has passed every hop, the operator repeats the same sequence on production in a change window. With Docker, the team builds an image from the target source, starts it against the backed-up database and runs migrations. On Kubernetes, the same image goes out as a rolling update, and you should confirm how your chart runs migrations. On a VM, the release is updated in place, dependencies are reinstalled, migrations run and services restart. Redeploying old code may not reverse a migration, so the backup is the fallback. The step is done when smoke tests pass on the production hostname and the rollback path is written down.

Which team should pick Docker or a VM

Docker usually fits a team that already builds, scans and promotes container images and wants each Decidim release to move through the same pipeline as its other services. The Decidim installation guide covers both a Docker path and a manual Rails install, so the container route is an officially documented option. Your team still needs container build and registry operations in-house, plus enough Rails and PostgreSQL knowledge to run migrations and restore the database.

  • Image policy: Confirm that your registry, base image rules and vulnerability scanning accept the Decidim image you plan to run, and who approves each new tag.
  • Supported lines: Pin to v0.32.x or v0.31.x, the two minor lines that receive security updates, and plan upgrades one minor version at a time.
  • Data outside the container: Keep PostgreSQL, uploaded files and secrets on services your policy already covers, so replacing a container never changes data.
  • Companion processes: Decide how background jobs, SMTP and file storage run as separate processes that share the same image.
  • Partner scope: A partner could review the Dockerfile, build the promotion pipeline and write the upgrade runbook under a written scope.

Check first whether your change board accepts an image promotion as the release record, because that decides whether Docker suits this team.

Decidim deployment questions buyers ask before hiring help

Is Kubernetes an officially supported Decidim install path?

The official installation guidance describes a manual Rails installation and an installation with Docker, so treat a Kubernetes setup as something to confirm, not assume. Ask the Decidim maintainers whether an upstream Helm chart or manifest set exists and who maintains it when a release changes the database structure. If no upstream chart exists, your team or your partner writes and maintains the manifests for the application, PostgreSQL, background job workers, file storage and mail relay. That ownership becomes part of your upgrade work, so write it into the scope. DeployOpen plans, implements, hardens and documents self-hosted platforms in your cloud accounts, data centers or air-gapped networks, so a Kubernetes build can be scoped in writing. Ask any quote to name the target cluster, ingress controller and storage classes.

Which hosting model is cheapest to run for Decidim and what drives cost?

The cheapest model depends on what your team already operates, because no fixed ranking of Docker, Kubernetes and virtual machines applies to every organization. Running cost has four parts: infrastructure (compute, PostgreSQL, file storage, backups and monitoring), labor to build and operate the platform, the work to keep Ruby, Node and PostgreSQL versions aligned with each release, and the cost of downtime. A Kubernetes model adds a cluster you must already run or pay to run, plus the skills to operate it, so it makes most sense when you already run several platforms on it. Virtual machines are easier to reason about but leave patching and process management with your team. Docker sits between them. One-time costs are design, installation and hardening. Recurring costs are hosting, patching and upgrades. Ask for a written quote that separates the implementation fee from retainer support and lists the hosting resources you must supply. DeployOpen does not publish a price list; a quote follows from the written scope.

How much effort does a Decidim install and upgrade take?

Effort depends on the hosting model, the integrations you need and the number of minor versions between your current release and the target. The official update guidance says to upgrade one minor version at a time, for example 0.29 to 0.30 before 0.31, to follow each release's upgrade instructions because some change database structures, and to back up the database first. Effort rises with custom components that need retesting, identity and social login configuration, SMTP, maps and geocoding, file storage design, and whether you have a staging environment that mirrors production. Runtime changes also add work: 0.31 uses Ruby 3.3.4, while 0.32 requires Ruby 3.4.7 and Node 22.14.x. For a first install, ask the partner for effort broken into design, installation, integration, hardening, documentation and handover. For each upgrade, ask for effort per step, restore testing and rollback steps, all tied to the written scope.

Can an in-house team run Decidim itself and which skills does it need?

Yes, if the team already runs Ruby on Rails and PostgreSQL in production, since Decidim is built on that stack. A team without that experience should plan for a learning period or outside help. The in-house skills to check are Ruby on Rails for customization, PostgreSQL administration (backups, restores, replication and major version upgrades), Linux server administration, your container runtime if you use Docker or Kubernetes, mail delivery, reverse proxy and TLS configuration, and enough Node knowledge to rebuild assets during upgrades. Security work matters too: applying patches on time, managing OAuth credentials for social login and tracking security advisories. Choose in-house when you have these skills and capacity for recurring upgrades. Otherwise an implementation partner can cover installation, hardening and handover. DeployOpen's fixed-scope work covers planning, implementation, customization, integration, hardening, backup, upgrades, documentation and support in your environment. Name in the scope what your staff will own after handover.

How is high availability achieved for Decidim and what should I confirm?

High availability comes from redundancy in each layer, and the high availability design is yours to confirm before you buy. Check these components: several application instances behind a load balancer, a PostgreSQL setup with replication and a tested failover path, shared file storage for ActiveStorage uploads that every application instance can read, separate background job workers for ActiveJob, and a mail path that keeps working when one node fails. Ask the partner where session state lives, how a failed node is replaced, how backups are restored and how often restores are tested. Cost drivers include the number of nodes, database replicas, storage redundancy and monitoring. Ask for the availability design, a failover test plan and the recovery time and recovery point targets you need, written into the scope and the acceptance criteria. DeployOpen can design, implement and document these components in your infrastructure, but availability targets are only as firm as the written scope.

How often do Decidim upgrades and security patches need to be applied?

Until version 1.0, Decidim supports security updates only for its last two minor versions, which are currently 0.32.x and 0.31.x. Platforms on 0.30.x or earlier no longer receive security updates and need an upgrade path soon. For vulnerabilities, Decidim gives implementers a grace period of 2 months to apply patches for standard issues and 4 months for critical ones before details are disclosed. Use those windows as the outer limit for your patch process, and set your own cadence from your risk policy and the release history. Read each release's upgrade instructions before applying it, because some releases change database structures. Ask the partner for a written patch and upgrade calendar, test and rollback steps, and whether retainer support covers monitoring of security advisories and upgrades. DeployOpen offers ongoing support, upgrades and continuous testing as retainers.

How DeployOpen scopes a Decidim deployment

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside the client's own infrastructure. For Decidim, the deployment target is settled in the written scope, based on your hosting footprint, availability targets and the team that will run it after handover. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • We confirm your hosting target first: your cloud account, data center or air-gapped network.
  • For Kubernetes, we confirm the packaging and its maintenance status before committing to that target.
  • The written scope lists topology, sizing inputs, login and SMTP integrations, backup targets and the upgrade path.

How we build

  • We install Decidim as a Rails application or with Docker, depending on the target agreed in scope.
  • We configure background jobs, file storage, SMTP, maps and geocoding, and login providers, including custom OmniAuth ones.
  • We test the running instance against the agreed security scope, including the verification steps that gate voting and signing.

How we hand over

  • We document the topology, configuration, backup and restore steps, and the upgrade procedure for your team.
  • We set up backups for the PostgreSQL database and file storage, as part of the agreed scope.
  • Your staff walk through the runbook with us before handover, so the team can run routine operations.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Decidim's security policy allows a 2-month grace period for standard flaws and 4 months for critical ones.
  • Decidim supports only its last two minor versions until 1.0, and upgrades move one minor release at a time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.