Moving OpenProject from Docker Compose to Kubernetes

A planned replatform of a Compose-based OpenProject onto Kubernetes with the official Helm chart, covering database restore, attachment storage, secrets, ingress and replica scaling.

On this page

Moving OpenProject from Docker Compose to Kubernetes starts with the data, not the manifests

A team already running OpenProject on Docker Compose that wants Kubernetes for scaling, standard operations or platform consistency is making a data and storage replatform, not a container rewrite. The official Helm chart does the deployment work, but the effort concentrates on three things: the database dump and restore, where attachments live after the move, and how secrets are carried across. Those decisions determine most of the schedule, so plan them before writing any values file.

The Helm chart requires Kubernetes 1.16 or later, Helm 3 and a PV provisioner, and it can optionally deploy PostgreSQL and Memcached. Confirm the chart version you intend to use against your OpenProject release, because the database and attachment settings differ between versions. The effort also depends on the platform you are joining. If the cluster already has tested storage classes, ingress, secret management and backup tooling, the work is mostly configuration. If those pieces are missing or new to your team, expect the platform build to take longer than the OpenProject move itself. Ask which of these exist and who owns them before agreeing on scope.

Attachments are the first hard decision. Filesystem attachments on Kubernetes need ReadWriteMany volumes because several pods write to them, so confirm that your storage class supports that access mode and test it under load. The alternative is to set persistence.enabled to false and s3.enabled to true, which moves attachments to object storage. That change also means copying existing files from the Compose opdata volume into the bucket and verifying the object paths, not only the database rows. Check how your current installation stores attachments and whether any repositories or other file data also need to move.

The secrets carry the most risk in the cutover. The SECRET_KEY_BASE value from the Compose environment must be carried over exactly, or sessions and encrypted data break. Kubernetes Secrets are stored unencrypted in etcd by default, so confirm that encryption at rest is enabled on your cluster and that only the service accounts that need them can read them. Decide early whether secrets come from a sealed or external store, and keep a dated, restricted copy of the original values in your password vault until the new environment has run a full backup and restore cycle.

What maps cleanly from Compose to the Helm chart and what does not

This table pairs each part of a Compose-based OpenProject stack with its counterpart in the official Helm chart. Read the rows marked as decisions first, because PostgreSQL placement, the SECRET_KEY_BASE carry-over and attachment storage change the migration plan more than the scaling settings do.

Compose elementHelm chart equivalentStatus and what to decide
Web servicereplicaCount sets the number of web instancesMaps directly. Confirm the replica count against your sizing, since web and background load are scaled separately.
Worker or background servicebackgroundReplicaCount sets the number of background worker instancesMaps directly. Scale workers only after confirming the database connection budget can absorb the extra pods.
opdata volume for attachmentspersistence settings with a PV provisioner, or s3 settings for object storageDecision required. Filesystem attachments need ReadWriteMany storage because several pods write to them. Otherwise set persistence.enabled to false and s3.enabled to true.
Database containerOptional bundled PostgreSQL, or an external PostgreSQL instanceDecision required. Keeping PostgreSQL external is common when backups, failover and version upgrades already run on a managed database platform. Confirm PostgreSQL 16 or later with the pg_trgm, btree_gist and unaccent extensions.
Memcached containerOptional bundled MemcachedMaps if you choose the bundled option. Confirm whether your Compose stack used a separate cache before you deploy one.
Environment file secretsKubernetes Secrets referenced by the chartNeeds planning. Kubernetes Secrets are stored unencrypted in etcd by default, so confirm encryption at rest and restrict read access with RBAC.
SECRET_KEY_BASESecret value that must match the original installationDecision required. Copy the existing value into the new Secret before the first start. A different value can invalidate existing sessions and encrypted data.
Reverse proxy and TLSIngress resource and the cluster's ingress controllerReplace, do not copy. Confirm TLS certificates, body size limits for attachment uploads and any proxy headers the application expects.
Host networking and portsService and Ingress objectsMaps with changes. Ports are no longer published on a host, so DNS and firewall rules must point at the ingress entry point.

Choosing between RWX volumes and S3 for attachments

Keeping attachments on a filesystem path means the Helm chart mounts a persistent volume that several pods can write to at the same time. The OpenProject Helm chart documents that filesystem attachments on Kubernetes need ReadWriteMany volumes because the web and background pods all write to them. This option keeps the storage model close to the Compose setup, where attachments lived in the opdata volume, so the existing file layout carries over with fewer changes.

  • Cluster requirement: the cluster needs a PV provisioner and a storage class that offers ReadWriteMany access. Confirm this with the platform team before the chart is installed, because a claim that cannot be bound blocks the release.
  • Storage team requirement: the storage team must agree on capacity, backup scope, snapshot behavior and who owns restores of the shared volume. Ask them to confirm the access mode and any latency or throughput limits in writing.
  • Copy path: copy the contents of the Compose opdata attachment directory into the new volume while the source instance is stopped, then check ownership and file permissions so the OpenProject user can read and write them.
  • Scaling impact: every web and worker replica mounts the same volume, so a storage outage affects all replicas at once.

After cutover, confirm that a new upload, a download of an older attachment and a file referenced in a work package all resolve correctly from more than one replica.

Documented tools and paths for moving data onto the Helm chart

The move from Compose to Kubernetes comes down to a few documented pieces: chart values that control storage and scaling, a database dump and restore, and Kubernetes Secrets for credentials. Each card covers one piece, with the check to run before cutover. Confirm exact value keys against the chart version you deploy, since the official Helm chart docs and scaling docs are the reference.

Persistence and RWX volumes

Filesystem attachments on Kubernetes need ReadWriteMany volumes because several pods write to them. Keep persistence.enabled set to true only if your storage class can provide RWX access, and confirm that the provisioner you plan to use supports it. Copy the attachment directory from the Compose opdata volume into the new claim before the first start, then compare file counts and sizes against the source.

Helm chart docs

S3 attachment storage

Setting persistence.enabled to false and s3.enabled to true avoids the RWX requirement by moving attachments to object storage. This option changes the migration: existing files must be uploaded to the bucket and their references verified, not just copied to a volume. Ask your storage team whether the bucket, endpoint, region and access policy are approved, and test one attachment download after restore.

Scaling web and background pods

On Kubernetes, replicaCount sets the number of web instances and backgroundReplicaCount sets the number of background worker instances. Start with values that match the sizing you chose for your user count, then raise web replicas first if page latency is the problem and worker replicas if notifications, exports or emails lag. Confirm both keys in the scaling docs for your chart version, and check that the database connection limit covers all replicas.

Scaling docs

Database dump and restore

Take a plain SQL dump from the Compose PostgreSQL container while OpenProject is stopped, then restore it into the chart's bundled PostgreSQL or into an external instance you manage. Match the PostgreSQL version and confirm that the pg_trgm, btree_gist and unaccent extensions exist before restoring, since OpenProject requires them. Run the database migration on the target and compare row counts for work packages and users with the source.

Minimum PostgreSQL major
16

Kubernetes Secret objects

Database passwords, the SECRET_KEY_BASE value and S3 keys belong in Kubernetes Secret objects, not in values files committed to Git. Keep the same secret key base as the Compose deployment so existing sessions and encrypted data remain readable. Kubernetes Secrets are stored unencrypted in etcd by default, so confirm that encryption at rest is enabled and that RBAC limits who can list or watch these objects.

Secrets good practices

Cutover verification

Before pointing DNS at the new ingress, run a short checklist: login through your identity provider, one attachment download, a work package edit with a notification, a scheduled background job, and a Gantt view load. Keep the Compose stack stopped but intact until these pass and a restore from the cutover backup has been tested. Record the chart version, values file revision and image tag so the next upgrade has a clear baseline.

How the replatform runs: inventory, staging restore, parallel run and cutover

The sequence moves a running Compose installation onto the Helm release in controlled stages, so each stage has a verified output before the next one starts and the Compose stack stays available as a fallback until cutover is accepted.

  1. Inventory the Compose stack and versions

    Record every service in the Compose file, the OpenProject image tag, the PostgreSQL major version, the Memcached configuration, the attachment storage location, the environment variables and the reverse proxy in front of the stack. Check the target Helm chart version against the OpenProject version you run, and confirm the PostgreSQL version meets the minimum in the OpenProject system requirements. The output is a written inventory that the team signs off, listing what moves, what is replaced by a chart value and what is retired.

  2. Stand up the Helm release in a non-production namespace

    Install the OpenProject Helm chart into a separate namespace on a cluster that meets the chart requirements: Kubernetes 1.16 or later, Helm 3 and a PV provisioner. Decide whether the chart deploys PostgreSQL and Memcached or whether you connect to existing services. The check is that the web and background pods start, the health endpoint responds and the release can be upgraded and rolled back in that namespace before any data is loaded.

  3. Take a consistent database dump and restore it

    Stop writes or put OpenProject in maintenance mode, take a plain SQL dump from the Compose PostgreSQL service and restore it into the target database. Keep the source dump file with its checksum. Confirm that the required extensions (pg_trgm, btree_gist and unaccent) exist on the target and that the restored OpenProject version matches the image you deployed. The check is that the restored instance opens, row counts for projects and work packages match the source, and a sample of users can log in.

  4. Copy attachments to RWX volumes or S3

    Copy the files from the Compose attachment volume to the storage the chart will use. With filesystem storage, the attachment volume needs ReadWriteMany access because several pods write to it. If you choose object storage, set persistence.enabled to false and s3.enabled to true, then move the files to the bucket. Confirm with your storage team that the RWX class or bucket policy meets your retention needs. The check is a file count and checksum comparison between source and target, plus opening a sample of attachments from the restored instance.

  5. Carry over secrets including SECRET_KEY_BASE

    Move the values that OpenProject needs to read existing data into Kubernetes Secrets, starting with SECRET_KEY_BASE, which must match the value used when the data was written. Also carry over database credentials, mail settings and any S3 keys. Kubernetes stores Secrets unencrypted in etcd by default, so confirm with your cluster owner that encryption at rest is configured and that RBAC limits who can list or watch these Secrets. The check is that the restored instance decrypts existing sessions and stored data without errors in the logs.

  6. Validate ingress and email on the staging release

    Point a staging hostname at the ingress controller and confirm TLS, the proxy headers OpenProject expects, and upload size limits match the Compose proxy. Send a test notification from the mail configuration and confirm delivery. Check that links in notifications resolve to the staging host. The output is a short test record covering login, file upload, a notification email and a page that loads through the ingress.

  7. Run a parallel read-only comparison

    Keep the Compose stack running and the Kubernetes instance available for read-only review by a small group. Compare project lists, work package counts, attachment access and key dashboards between the two. Confirm that scaling settings chosen for the web and background workers, through replicaCount and backgroundReplicaCount, handle the expected load in a test. Any difference is recorded and resolved before cutover. The check is a signed comparison with no open data differences.

  8. Cut over DNS or the proxy, then retire Compose after rollback

    Repeat the database dump, attachment sync and secret check as a final delta, then move the public hostname or reverse proxy target to the Kubernetes ingress. Keep the Compose stack stopped but intact, with its volumes, for a rollback window agreed in advance with the business owner. Decommission the Compose services only after that window closes without a rollback decision and the backups are verified. The output is a closed cutover record and a retained, tested backup set.

How the Compose stack maps onto the Kubernetes release during cutover

The diagram starts with users reaching the Compose source and the new Kubernetes release through a cutover switch, which decides where traffic lands. On the cluster side, ingress routes requests to web pods (set by replicaCount) and background worker pods (set by backgroundReplicaCount), both connecting to PostgreSQL and Memcached. Attachments take one of two paths: a ReadWriteMany volume shared by several pods, or an S3 bucket reached over the boundary to the object store. Check that every hand-off across the cluster, database and object store boundaries uses the same database and attachment settings as the source.

Compose source, cutover switch and Kubernetes components with trust boundaries.

What drives the effort and cost of a Kubernetes replatform

This table lists the factors that change how much work a Compose-to-Kubernetes move takes and what recurs after go-live. Read each row as a question to answer in your own environment before asking for a quote. The main takeaway is that attachment storage, database placement and cluster maturity usually shape the scope more than the chart itself.

DriverWhy it changes effort or costWhat to ask for or confirm
Attachment volume and storage typeFilesystem attachments on Kubernetes need ReadWriteMany volumes because several pods write to them. Moving to S3 changes the work to bucket setup, a data copy and access policy.Total attachment size, the storage class that supports RWX, or the S3 target, and a quoted copy and verification step for each.
PostgreSQL inside the chart or externalThe chart can deploy PostgreSQL, but a database you already operate may stay outside the cluster. Each choice changes dump and restore steps, backup ownership and failover design.Who owns database backups and restores after cutover, the PostgreSQL version (16 or later is required), and the required extensions.
Cluster ingress and PV provisioningThe chart expects a PV provisioner and an ingress path. If the cluster lacks either, platform work comes before OpenProject work and is often unplanned.Confirmed ingress controller, TLS certificate process, a working dynamic PV provisioner, and the Kubernetes version (1.16 or later is required by the chart).
Secrets managementSecrets are stored unencrypted in etcd by default. Teams that need encryption at rest, least-privilege RBAC or an external secret store add design and review time.Whether encryption at rest is enabled on the cluster, who may read Secrets, and whether an external store such as the Secrets Store CSI Driver is required.
Number of environmentsEach environment (test, staging, production) repeats values files, secrets, restore tests and access reviews. A parallel run needs two stacks running against the same data.Which environments are in scope, whether the non-production copies must hold real data, and how values are versioned across them.
Web and worker sizingreplicaCount sets web instances and backgroundReplicaCount sets background workers. Sizing choices affect load testing, resource limits and how long tuning takes after cutover.Expected user count, the sizing basis used, and the load test scope and pass criteria before go-live.
Enterprise licensing for SSOSSO methods such as SAML, OIDC, CAS, Kerberos and Okta are Enterprise features. Plan and seat count drive licensing cost, which recurs, separately from the migration work.Named-user count and tier, the SSO method, and whether the quote includes the Enterprise license or only the configuration work.
Parallel run and cutover testingRunning the Compose and Kubernetes stacks side by side needs data sync or a freeze window, comparison checks and a rollback plan. This is often the largest share of one-time testing.A written test plan covering data comparison, user login checks, attachment access, rollback steps and who signs off the cutover.
Recurring platform operationsAfter go-live, Kubernetes upgrades, OpenProject upgrades, etcd backups, certificate renewal and monitoring recur. Version skew rules and patch windows set how often this work happens.Whether the quote covers upgrades and support as a retainer, the upgrade cadence, and who performs etcd backups and restore tests.

What usually goes wrong in a Compose to Kubernetes move

Most failed replatforming work traces back to a handful of assumptions that held on a single Compose host and stopped holding on a cluster. The cards below cover storage, data consistency, secrets, database extensions, scaling and the configuration carried over from the old setup, with a prevention step for each.

Attachments on a non-shared volume

Filesystem attachments written to a volume that only one node can mount work until a second pod starts writing to a different node. Users then see missing files or uploads that disappear on refresh. Before cutover, confirm the storage class supports ReadWriteMany, or plan to set persistence.enabled to false and s3.enabled to true so attachments go to object storage. Copy a test attachment through each web pod and confirm it reads back.

Helm chart docs

Dump taken during live writes

A database dump taken while the Compose stack still accepts writes produces a restore that is missing the last hours of work packages, time entries and comments. The gap is easy to miss because the restored instance starts cleanly. Stop the web and worker containers, take the dump, then verify row counts for work packages and journals against the source before pointing users at the new cluster. Keep the source stopped but intact until the new environment has run for a while.

Secrets unencrypted in etcd

Kubernetes stores Secrets unencrypted in etcd by default, so the SECRET_KEY_BASE value and database passwords carried over from a .env file sit in plain form in the cluster datastore. Anyone with broad read access to Secrets or to an etcd snapshot can recover them. Ask whether encryption at rest is configured for etcd, restrict list and watch access with least-privilege RBAC, and consider an external store through the Secrets Store CSI Driver for production.

Secrets good practices

Missing PostgreSQL extensions

OpenProject requires the pg_trgm, btree_gist and unaccent extensions, and a restore into a managed or externally run PostgreSQL instance may not include them. The failure can appear during startup or only when a search or filter runs. Check that the target server runs PostgreSQL 16 or later and that all three extensions are installed in the OpenProject database before the restore, and confirm the database user has the rights to create them.

Background workers left at one replica

On Kubernetes, replicaCount controls web instances and backgroundReplicaCount controls background worker instances. Teams often scale the web deployment for traffic and leave workers at their default, so emails, notifications and exports queue up while the UI looks healthy. Set both values deliberately during planning, then check that background jobs drain after a test batch of notifications and exports.

Scaling docs

Old ingress and mail settings

Compose setups often hard-code the public hostname, reverse proxy headers and SMTP host inside environment variables or a proxy container that the cluster does not reuse. After cutover, links in emails point to the old host, uploads fail on large bodies, or no mail leaves the cluster. Inventory every host, TLS and mail setting from the old stack, map each to the ingress and Helm values, and send a test notification through the new SMTP path before switching DNS.

Handling secrets, RBAC and pod security on the new cluster

Decide how secrets will be stored before the first OpenProject pod starts on the new cluster, because the Compose files and .env values that held the SECRET_KEY_BASE, database password and S3 keys will not carry over as-is. Kubernetes Secrets are stored unencrypted in etcd by default. Before cutover, choose one of three approaches: enable encryption at rest for the API server's Secret resources, keep Secrets in the cluster and restrict who can read them with least-privilege RBAC, or pull credentials from an external store through the Secrets Store CSI Driver. Whichever you pick, restrict list and watch on Secrets to the operators who need them, since those verbs expose secret values in bulk even when individual get calls are narrow.

Pod settings for the OpenProject web and background pods should be planned against the Pod Security Standards, and the cluster's configuration should be reviewed against the CIS Kubernetes Benchmark. Confirm which Pod Security level your namespace enforces and whether the chart's default security context, writable paths and any init containers fit that level. Also confirm the service account the chart creates, its token mounting behavior and any role bindings it receives. Check the attachment volume's access mode and the S3 credentials path during this review, since both affect what each pod can reach.

DeployOpen can plan these controls, configure them in your cluster and prepare the evidence your assessors will ask for, such as RBAC bindings, encryption settings and namespace policies. Independent auditors and certification bodies issue any assessment of the result, so confirm early which framework your assessor will use and what evidence format they expect. Record the decisions in your cutover plan so the secrets approach, role model and pod policy are reviewed together rather than discovered during go-live.

Questions teams ask before moving OpenProject to Kubernetes

How much does moving OpenProject from Docker Compose to Kubernetes cost?

The cost depends on the scope agreed in writing, and no price is published for this work. The main components are the planning of the target cluster and storage, the database dump and restore, the attachment migration to ReadWriteMany volumes or S3, secrets and ingress setup, the validation of web and worker replicas, and the cutover window. Ask for a quote that lists each component separately, states which items are one-time, and names what recurs after handover, such as upgrades, backups and monitoring. Costs rise with the size of the attachment store, the number of environments, custom ingress or identity requirements, and the number of cutover rehearsals. Your own licensing choice also matters: the Community edition is free, while Enterprise on-premises is priced per named user per month, so confirm the edition before scoping.

How long does a Compose to Kubernetes move take?

Duration varies with the state of the existing installation and the environment it lands in. A clean Compose stack with a small attachment store and a cluster that already meets the requirements moves faster than one with a large attachment volume, an undocumented .env file, or a cluster still being built. The Helm chart needs Kubernetes 1.16 or later, Helm 3 and a PV provisioner, so any missing cluster capability adds work before the data move starts. Time is also driven by how many rehearsal restores you run, how long your change board takes to approve the window, and how much validation your users require. Ask for a timeline built from the agreed scope, with the rehearsal count and the cutover window stated.

What does our internal team need to provide for the move?

Your team needs to provide access and decisions that only you can make. Expect to supply the following:

  • Read access to the Compose host, the .env values, and the running database for a dump.
  • A decision on attachment storage: a ReadWriteMany volume that the cluster supports, or S3-compatible object storage with persistence.enabled set to false and s3.enabled set to true.
  • Cluster access with rights to create namespaces, secrets, ingress and persistent volume claims, plus a named owner for the platform.
  • A change window that covers the final dump, restore, attachment copy and verification, along with a rollback decision point.
  • Ownership of DNS, TLS certificates and the identity provider configuration used for sign-in.

Confirm these early, because storage and DNS decisions often change the design more than the database move does.

Can we move OpenProject to Kubernetes ourselves using the Helm chart docs?

Yes, a team with Kubernetes and PostgreSQL experience can follow the OpenProject Helm chart documentation and complete the move internally. The chart itself is documented, but the risk sits in the surrounding work: a correct SQL dump and restore, keeping the secret key base consistent so existing sessions and encrypted data still work, restoring attachments into storage the pods can all reach, and checking that the version of the application matches the migrated database. Teams that lack one of these skills often choose a partner for the cutover while keeping day-two operation in-house. Check the Helm chart documentation against your own cluster version and storage class before you decide, and make sure someone owns the rollback plan.

Should PostgreSQL run inside the Helm chart or on a separate database service?

The chart can optionally deploy PostgreSQL and Memcached, but production teams often run the database on a managed or separately operated service because backup, failover and major version upgrades then follow the database team's existing process. Running it in the chart is simpler for a small installation, but you must then own volume snapshots, point-in-time recovery and upgrades inside the cluster. OpenProject officially supports PostgreSQL 16 or later since OpenProject 16.0.0 and requires the pg_trgm, btree_gist and unaccent extensions, so confirm that your chosen database provides them before the restore. Ask the database owner whether recovery has been tested on the target platform.

How do replicaCount and backgroundReplicaCount change scaling after the move?

On Kubernetes, replicaCount sets the number of web instances and backgroundReplicaCount sets the number of background worker instances, so you can scale request handling and background jobs separately. Scaling only works cleanly when attachments are on shared storage or S3, because several pods write to the same data and filesystem attachments then need ReadWriteMany volumes. Before you increase either value, confirm that the database connection limits and the memory and CPU requests on your nodes can handle the extra pods, and check the sizing guidance for your user count. Scale in small steps and watch response times and job queues after each change, because more workers can increase database load faster than users notice.

How DeployOpen scopes and delivers a Compose to Kubernetes move

DeployOpen approaches a move from Docker Compose to Kubernetes as a written, fixed-scope engagement. We start from your current Compose file, database, attachment storage and ingress setup, then agree the target cluster, chart values and cutover steps before any change is made to production.

How we scope

  • Inventory the running Compose stack, including the database version, attachment storage, environment secrets and public hostname
  • Confirm the target cluster, Kubernetes version, storage classes and whether RWX volumes or S3 will hold attachments
  • Agree in writing the replicaCount and backgroundReplicaCount targets, the ingress design and the rollback point

How we build

  • Build the Helm values in a test cluster, with secrets managed outside plain values files and access limited by RBAC
  • Rehearse the database dump and restore and the attachment copy on a staging copy of production data before cutover
  • Verify web and worker replicas, ingress routing, email delivery and attachment reads and writes against a checklist

How we hand over

  • Deliver the chart values, manifests, secret inventory and the runbook for the cutover and rollback steps
  • Document etcd backup coverage, Secrets encryption at rest and the upgrade order for the cluster and OpenProject release
  • Walk your platform and security teams through the running system so they can review and operate it

How we support

  • Ongoing support, OpenProject upgrades and continuous testing are available as retainers after the move
  • Retainers can cover Helm chart upgrades, scaling changes and retesting of backups and restores
  • Ask for the support scope, response arrangements and change process in the quote before work starts

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.