Migrating OpenProject from packages to Docker Compose: what the move involves
A team running a DEB or RPM OpenProject installation that wants to move to Docker Compose is not reinstalling the application. The move is a transfer of the database and the attachments, plus a version check that decides whether the old data can be loaded into the current Compose release. Everything else, from the web server configuration to the container layout, is new, so the work should be planned as a data migration with a cutover, not as an upgrade of the existing host.
The guide avoids the packaged binary backup and uses a plain SQL dump instead. A binary backup taken by the packaged tooling can fail when it is restored across PostgreSQL versions, and the Docker image may run a different major version from the host. A plain dump is larger and slower to load, but it is readable, testable on a staging stack, and far less tied to one server's PostgreSQL build. The same logic applies to attachments: they are copied as files and placed into the Compose volume, not restored through the packaged tooling.
Carry over SECRET_KEY_BASE from the existing /etc/openproject configuration so that existing sessions, API tokens and encrypted values remain valid after the cutover. Without it, users are signed out and any stored secret that depends on the key must be re-entered. Effort depends mainly on three things: the PostgreSQL major version of the source database, which decides whether bin/migrate must run first, the volume of attachments to copy, and the number of integrations such as SSO or Nextcloud that must be reconfigured against the new host. Confirm each of these in your own environment before agreeing a plan or a quote.
Which packaged settings and data carry over to Compose
This table compares each part of a packaged OpenProject install with its Docker Compose counterpart and notes what the move requires. Read it before the backup starts, because the rows marked for a separate decision need an owner and a plan before cutover.
| Component | Packaged install | Docker Compose and migration note |
|---|---|---|
| Database | PostgreSQL on the host, managed by the packaged configuration | Restore a plain SQL dump into the Compose database. Run bin/migrate first if the dump comes from an older major version, since importing an old dump directly can crash the seeder service. |
| Attachments | Stored in the packaged file location on the host | Extract into the files folder of the opdata volume at /var/openproject/assets. Ownership must be UID 1000 or the app cannot read them. |
| SECRET_KEY_BASE | Generated at package install and held in the packaged configuration | Reuse the same value in the Compose environment so existing sessions and tokens stay valid. A new value signs users out and invalidates stored tokens. |
| Configuration files | Files under /etc/openproject | Do not copy them as-is. Carry over the values you need into the Compose environment settings and confirm each one against the current Docker documentation. |
| Git and Subversion repositories | OpenProject-managed repositories on the host | Not supported on Docker. Decide before cutover whether to keep a separate repository host, retire the repositories or migrate them to another system. |
| Plugins and integrations | Installed through the packaged deployment | Confirm each plugin and integration is supported in the Docker image and at the target version. Retest the Nextcloud link and any SSO setup after the move. |
| Backups | Packaged binary backup archive | Keep the packaged backup as a fallback, and build the new environment from a plain SQL dump plus the attachment files, since the binary backup can fail across PostgreSQL versions. |
Documented paths for moving the data
The documented route moves data in four parts: a packaged backup kept for reference, a plain SQL dump of the database, a migration step for older dumps, and attachments copied into the opdata volume. Each part has its own failure mode, so the cards below cover them in the order you would run them.
Packaged backup kept for reference
Take the packaged backup from the existing installation, but treat it as a safety copy rather than the restore source. The guide's reason for avoiding it as the restore path is that the packaged binary backup can fail when the PostgreSQL version differs between the old and new hosts. Store it with the copy of /etc/openproject so you can roll back the old server if the new stack misbehaves. Confirm that the archive opens and that its size looks reasonable before you shut down the source.
Plain SQL dump of the database
The plain SQL dump is the restore source the guide relies on, because it does not depend on the binary format of the PostgreSQL version that produced it. Create it from the database the packaged install uses, and keep the file in a format you can read and re-import. Record the source PostgreSQL version next to the file, since that version determines whether bin/migrate is needed. Check the dump file size and the last lines of the file to confirm it finished.
Upgrading older dumps with bin/migrate
Compose runs the current major version, so a dump from an older release should pass through bin/migrate before it is used as the target database. The guide warns that importing an old dump directly can crash the seeder service, which is why this step is not optional for older data. Run the migration against a copy of the dump first, and keep the original file untouched. Plan this as a separate test run, because it can take longer than the import itself on large databases.
Attachments into the opdata volume
Attachments from the packaged install are extracted into the files folder of the opdata volume at /var/openproject/assets. That folder must be owned by UID 1000, or the container will not be able to read or write the files. Set the ownership after the copy, then open a few attachments from different projects to confirm they render. Note that OpenProject-managed Git and Subversion repositories are not supported on Docker, so decide how those will be handled before cutover.
Keeping SECRET_KEY_BASE across hosts
The guide reuses the original SECRET_KEY_BASE value in the Compose environment so sessions and tokens remain valid after the move. If the value is replaced, users are logged out and any stored tokens stop working. Copy the value from the packaged configuration in a secure way, and do not place it in a shared repository or a chat thread. Confirm the value is identical on both sides before you start the new stack.
How the packaged-to-Compose cutover runs in order
The sequence moves a packaged OpenProject onto Docker Compose with a verified copy of the data, a tested restore and a read-only parallel run before anyone depends on the new stack. Each step closes with a check that the client signs off before the next one starts.
Inventory the current installation
Record the OpenProject version on the package install, the PostgreSQL version, the installed plugins and the size of the attachments folder. DeployOpen works through this with your administrator and confirms the target Compose release runs the current major version. Done when the inventory is written down, reviewed by your team, and any gaps in the plugin list are resolved with the vendor or in your environment.
Take the backup and plain SQL dump
Create a packaged backup, then export a plain SQL dump of the database, because the packaged binary backup can fail across PostgreSQL versions. Store both copies outside the server being retired, along with a copy of SECRET_KEY_BASE and the configuration under /etc/openproject. Done when the dump file opens and the backup archive has been checksummed and copied to storage your team controls.
Rehearse the restore in a test Compose stack
Stand up a non-production Compose stack and restore the SQL dump and attachments into it. Running this rehearsal first exposes version mismatches, missing extensions and plugin issues before production is touched. DeployOpen runs the rehearsal, and your team reviews the results. Done when the test stack starts, users can sign in and a sample of work packages and attachments opens correctly.
Run bin/migrate on older dumps
If the dump comes from an older release than the Compose image, run bin/migrate against it before the seeder service sees it, since importing an old dump directly can crash the seeder. Watch the migration output for errors and keep the log with the change record. Done when the migrated database starts on the target release and the migration log has no unresolved errors.
Reuse SECRET_KEY_BASE and restore attachments
Set the original SECRET_KEY_BASE in the Compose environment so existing sessions and tokens stay valid. Extract the attachments into the files folder of the opdata volume at /var/openproject/assets, and confirm the files are owned by UID 1000 so the application can read and write them. Note that OpenProject-managed Git and Subversion repositories are not supported on Docker, so plan those separately. Done when a sample of attachments downloads and no permission errors appear in the logs.
Run a parallel read-only check
Keep the package install running but in read-only use, while the Compose stack holds the migrated copy. Your team checks projects, work package counts, attachments, user access and email notifications against the source. The length of this parallel run is set by your team, based on the review your change process requires. Done when the agreed checklist passes with no unexplained differences in data or access.
Cut over to the Compose stack
Make a final dump and attachment sync from the package install during a window your team approves, then point users and any reverse proxy at the Compose stack. Confirm that sign-in, email and attachment links work from the user side. Done when users work on the Compose stack and the package install no longer receives writes.
Decommission the package install after retention
Keep the package install, its backups and the final dump for a retention period agreed with your compliance and operations teams, then remove the packages and data. The retention period is set by the client, not by DeployOpen. Done when the retention period has ended, a deletion record is filed, and the backups required by your policy are archived in a documented location.
Why bin/migrate and SECRET_KEY_BASE matter for the cutover
The Compose stack runs the current major version of OpenProject, so an older packaged dump cannot simply be loaded into it and started. Its database schema has to be brought forward first, and the supported way to do that is to pass the dump through bin/migrate before the Compose services take over. The reason this step matters is that importing an old dump directly can crash the seeder service during startup, which leaves you debugging a failed container instead of a database. Before cutover, confirm which packaged version the source system runs, confirm the target image version you plan to pin, and read the migration path in the packaged to Docker migration guide for the exact sequence your versions require. Keep the original dump untouched so you can repeat the migration if a step fails.
Reusing the value of SECRET_KEY_BASE from the packaged installation is what keeps existing sessions and tokens valid after the move. OpenProject uses this secret to sign and verify session data, so if the new Compose stack starts with a freshly generated value, every signed session cookie and token issued by the old system stops verifying. In practice, users are logged out and must sign in again in their browsers, and any API clients or integrations that rely on tokens built from that secret will fail until they are reissued. Copy the value from the packaged configuration exactly, keep it in your secrets store rather than in a shared compose file, and do not regenerate it during the first start. If your team deliberately rotates the secret as part of the cutover, plan a communication to users and a check of every integration that authenticates with OpenProject.
After the first start, verify the cutover against these two points rather than assuming it worked. Log in with an existing account and confirm that the session survives a browser refresh, then test one API token or integration login that was active before the move. Confirm that the schema version reported by the new stack matches what bin/migrate produced, and that the seeder service completed without errors in the container logs. These checks are short, but they catch the two failures this section is about: a version mismatch that only appears under load, and a secret mismatch that looks like a random login problem. Record the results alongside the backup identifiers so the cutover can be audited later.
What drives effort and duration in this migration
This table lists the factors that change how much work a packaged-to-Compose move takes, why each one matters, and how to keep it contained. Read it before asking for a quote, because each row is a question the partner or your own team should answer in writing.
| Driver | Why it changes effort | How to keep it down or what to confirm |
|---|---|---|
| PostgreSQL and OpenProject version gap | An older dump must pass through bin/migrate before import, and the number of steps grows with how far the source install lags the current major version. | Record the installed OpenProject and PostgreSQL versions first. Ask whether the quote includes each migration step and a test restore. |
| Dump size and restore time | Larger plain SQL dumps take longer to export, transfer, import and check, and they extend each test cycle. | Measure the database size before scoping. Plan at least one full timed test restore on the target host. |
| Attachment volume and file count | Attachments are extracted into the files folder of the opdata volume at /var/openproject/assets, so large or numerous files add copy, ownership and verification work. | Count files and total size. Confirm that ownership is set to UID 1000 and that the copy is checked file by file, not only by size. |
| Git and Subversion repositories | OpenProject-managed Git and Subversion repositories are not supported on Docker, so they need a separate plan. | Identify any repositories before work starts. Ask the partner for a written decision on each one, including whether it stays out of scope. |
| Plugins and integrations | Each integration needs its own configuration, testing and sometimes its own license tier, such as Enterprise SSO or the Nextcloud integration's OpenID Connect add-on. | List every enabled plugin and integration. Confirm which ones the quote covers and which plan each requires. |
| Docker host and proxy setup | The new host, Docker and Compose configuration, reverse proxy, TLS certificates and email settings are new work that the packaged install did not need in the same form. | Ask whether the quote covers host preparation, proxy configuration and the handover of runbooks, or whether your team provides the host. |
| Secret and session continuity | Reusing SECRET_KEY_BASE keeps sessions and tokens valid, and checking that it carried over correctly requires specific tests. | Ask for a test login, API token check and session check against the migrated copy before cutover. |
| Verification rounds | Each round of restore, comparison and user acceptance testing repeats the database and attachment checks, so effort grows with the number of rounds the client requires. | Agree the number of rounds, the checks in each one and the sign-off owner in the written scope. |
| One-time versus recurring costs | One-time work covers assessment, migration, testing and cutover. Recurring costs cover hosting, backups, OpenProject Enterprise seats if used, and any retainer for upgrades. | Ask the quote to separate one-time migration fees from recurring support, and to state which costs the client pays directly to the vendor. |
What usually goes wrong and how to prevent it
Most failed moves from a package install to Docker Compose come from a short list of mistakes made during the cutover. Each card below names one failure, why it hurts this migration, and the check that catches it before users do.
Importing an old dump directly
Loading a SQL dump taken from an older packaged release straight into Compose can crash the seeder service during startup. Compose runs the current major version, so the dump must first be upgraded with bin/migrate on a staging copy. Check the dump's source version against the target before any import, and confirm the seeder starts cleanly on the staging stack.
Changed SECRET_KEY_BASE
If the Compose environment generates a new SECRET_KEY_BASE, every existing session and API token stops working, so all users are logged out at once. Copy the value from the packaged configuration into the Compose environment file before the first start. Verify by logging in with an existing account after cutover and confirming an existing API token still authenticates.
Attachments with wrong ownership
Attachments extracted into the files folder of the opdata volume must be owned by UID 1000, which is the user the container runs as. Files copied as root or with the packaged host's UIDs will exist on disk but return errors when users open them. Check ownership with a listing of /var/openproject/assets inside the container and open a sample attachment from an old work package.
Repositories left behind
OpenProject-managed Git and Subversion repositories are not supported on Docker, so a packaged instance that relies on them cannot simply move across. Inventory every project with a managed repository before cutover and decide whether to retire it, move it to an external host, or keep the packaged server running. Confirm the list with the project owners so no repository disappears without a decision.
Unverified links and mail settings
The host name, protocol and port in the new environment often differ from the packaged install, so links in notification emails and generated URLs can point at the old server. Outgoing mail settings also need re-entry and a test message. Confirm the configured host name, send a test notification to a real mailbox, and open a link from that email on the new host.
Questions teams ask before moving OpenProject to Docker Compose
Can our team move a packaged OpenProject to Docker Compose without a partner?
Yes, a team with Linux, PostgreSQL and Docker experience can do the move in-house, provided it has a maintenance window, a tested backup and someone who owns the cutover. The work follows a fixed sequence: take a packaged backup and a plain SQL dump, run the migration path to the current major version with bin/migrate when the source is older, reuse the existing SECRET_KEY_BASE, restore attachments into the opdata volume and verify the result. The main risk is skipping a step that has no visible error until users log in. Teams without that experience usually choose a partner for the rehearsal and the verification checklist, not for the commands themselves.
What drives the cost and effort of a packaged to Docker Compose move?
The cost follows the number of moving parts, not the command count. The main drivers are the size of the database and attachment store, how far the source version sits behind the current release, whether the instance has custom configuration in /etc/openproject, how many integrations and SSO connections must be retested, and whether a staging environment exists for a rehearsal. Ask any provider for a quote that lists the rehearsal runs, the cutover window, the verification steps, and the post-cutover support period as separate line items. Those items separate one-time effort from any recurring support you choose to buy later.
How long does a packaged to Docker Compose migration usually take?
The duration depends on the same inputs as cost: data volume, source version distance, the number of rehearsals and how much verification the business requires. The active work is short compared with the time needed for a staging rehearsal, a user acceptance check and a planned maintenance window. Confirm with your provider how many rehearsal runs are included and how long the cutover window must be. Any single number should come from your own environment, measured in a staging copy, rather than from a general estimate.
What must our team provide before the migration starts?
Three things must be ready before the work begins. First, a current packaged backup and a plain SQL dump, taken and checked on a restore target, because the packaged binary backup can fail across PostgreSQL versions. Second, access to the source server, the target Docker host, the DNS or proxy records and the secrets store, plus a named owner who can approve the cutover. Third, test users and representative projects that cover roles, attachments and any SSO login, so verification reflects real work. Also record the current SECRET_KEY_BASE value, because sessions and tokens depend on it.
Do SSO or Enterprise features change the migration plan?
Yes, they add verification work even though the data path stays the same. OpenProject lists single sign-on through SAML, OIDC, CAS, Kerberos and Okta, LDAP group synchronization and custom branding among its Enterprise features. If your packaged instance uses any of these, confirm that the license key and identity provider settings carry over, that the redirect URLs match the new host, and that group mappings produce the same roles after cutover. Enterprise licensing is priced per named user per month, so confirm with OpenProject which plan and seat count apply to the Docker target before cutover.
Can we keep the package installation as a fallback after cutover?
Yes, and it is the safest approach. Keep the packaged server stopped but intact, with its database and attachment files untouched, until the Compose instance passes verification and has run through a full business cycle. Rolling back then means pointing DNS or the proxy back to the old host and restarting it. Once users write new data to the Compose instance, the packaged server no longer holds the latest state, so the rollback window closes unless you plan a reverse data copy. Agree the rollback deadline and the owner of that decision before the cutover window opens.
What should we verify after the Compose instance goes live?
Check the items that a silent error would hide. Confirm that existing users can sign in with their old sessions and tokens, which indicates the SECRET_KEY_BASE carried over. Open a sample of work packages and confirm that attachments download and that the files sit in the opdata volume at /var/openproject/assets, owned by UID 1000. Confirm that project membership, roles, versions and custom fields match the source. Note that OpenProject-managed Git and Subversion repositories are not supported on Docker, so plan their removal or a separate hosting path if your packaged instance uses them. Record each check so the sign-off is auditable.
Packaged data moves through a dump and bin/migrate before it reaches the Compose stack
The diagram starts on the packaged server, where PostgreSQL and the attachment folder hold the live data. A plain SQL dump and the SECRET_KEY_BASE value leave that server, and bin/migrate brings the dump up to the current major version before the Compose database is seeded. Attachments are extracted into the opdata volume at /var/openproject/assets, and verification happens before cutover.
Data and secrets flow from the packaged server into the Compose stack before cutover.
How DeployOpen works on this
DeployOpen plans and carries out the move from a packaged OpenProject installation to Docker Compose inside your own infrastructure. The work starts with a written scope that fixes the backups, the version path, the attachment restore and the checks that count as done, so both teams know what success looks like before the first dump is taken.
How we scope
- Inventory the current package version, the PostgreSQL version, the attachment volume and any Git or Subversion repositories, which Docker installs do not support.
- Agree the target Compose release and whether bin/migrate must run through intermediate versions before the dump is restored.
- Confirm in writing who takes the packaged backup, who holds the SECRET_KEY_BASE value and the acceptance checks for users, projects and files.
How we build
- Run a rehearsal on a copy of the packaged installation, restoring the plain SQL dump and the attachments into a test Compose stack first.
- Confirm the migration path with bin/migrate, then restore attachments into the files folder of the opdata volume and correct ownership to UID 1000.
- Record each step, configuration value and command so the production cutover can be repeated exactly during the agreed maintenance window.
How we hand over
- Deliver the Compose files, environment settings and runbook covering the database, the opdata volume and the restore procedure, with secrets kept out of version control.
- Provide the verification checklist covering login and sessions, work package history, attachment downloads, email notifications and scheduled jobs.
- Walk your administrators through the post-cutover checks and the rollback plan, so the old packaged host is kept until the team signs off.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover, including future OpenProject release upgrades.
- Ask for a written quote based on your scope, since DeployOpen does not publish a price list for this work.

