Upgrading Redmine in Docker: when to move and which path to take
Move to Redmine 7.0 if your containerized Redmine runs 6.0, 6.1 or any older line. Redmine 7.0.x is the only fully supported line and receives new features, bug fixes and security updates. Redmine 6.1.x gets only bug and security fixes, Redmine 6.0.x gets only important security fixes, and 5.1.x and older no longer receive support. If your container runs 6.0 or 6.1 today, the question is not whether to upgrade but how soon, and whether the plugins you depend on support 7.0 before you start. If you run 5.1 or older, the path is longer and is covered in the sibling pages on that jump.
For a Docker deployment, the supported path is a change of image tag rather than a rebuild of the application. The official Redmine image publishes the 7.0.2, 6.1.5 and 6.0.11 tags on Debian trixie and bookworm and on Alpine variants, so you choose the tag that matches your target line and base operating system, then update your compose file or orchestrator manifest. On start, the container runs db:migrate unless REDMINE_NO_DB_MIGRATE is set, and it runs redmine:plugins:migrate on each start when REDMINE_PLUGINS_MIGRATE is set. Read the image documentation on Docker Official Image: redmine for the variables that apply to your setup before you change anything.
Treat the first start on the new tag as a planned change with a verification step, not a routine restart. Confirm that the database and the files volume are backed up, that SECRET_KEY_BASE is set to the same value as before so existing sessions and encrypted data remain readable, and that the files volume is mounted at the same path. After the container starts, check the migration output in the logs, sign in as an administrator, review the plugin list in the administration area, and test one issue creation and one attachment upload. Confirm with your plugin authors which versions support the target line, because a plugin that fails to load can block the start you are relying on.
What changes in the Docker upgrade and what you must do
This table lists each change that affects a containerized Redmine upgrade, what it does to your running system, and the action to take before or during the move. Read it as a pre-upgrade checklist: work through each row against your current image, compose file or deployment manifest and your installed plugins.
| Change | Impact | Action needed |
|---|---|---|
| Image tag moves to 7.0.2, 6.1.5 or 6.0.11 | The official image publishes these tags on Debian trixie, Debian bookworm and Alpine variants, so the base OS and tag both change with the upgrade. | Pin an explicit tag and variant in your deployment file, not latest. Confirm which base variant your organization has approved. |
| Automatic db:migrate on container start | The image runs database migrations each time the container starts unless REDMINE_NO_DB_MIGRATE is set, so a restart can change the schema. | Take a database backup before starting the new image. Decide whether migrations should run automatically or by a controlled step. |
| REDMINE_NO_DB_MIGRATE | Setting this variable skips the automatic db:migrate on start, leaving schema changes to be run by hand. | Set it only if you run migrations manually, and record the command and its output as part of the change. |
| REDMINE_PLUGINS_MIGRATE | When set, the image runs redmine:plugins:migrate on every start, so plugin schema changes also run automatically. | Set this variable only after confirming each installed plugin supports the target version, and verify plugin migrations after the first start. |
| Rails 8.1 and supported Ruby versions in Redmine 7.0 | Redmine 7.0 runs on Rails 8.1 and supports Ruby 3.2, 3.3, 3.4 and 4.0, and it does not support JRuby. Custom images or gems built on older Ruby can fail. | Confirm any custom image layers, Ruby gems or interpreter settings match a supported Ruby version before building. |
| Plugin compatibility | Plugins built for older Redmine versions may not load or migrate on 7.0, and a failed plugin can stop the container from starting cleanly. | Audit each installed plugin against the target version, test the upgrade in a staging container, and replace or remove plugins with no compatible release. |
| 6.0.x security-only status | Redmine 6.0.x receives only important security updates, so staying on 6.0 limits fixes you receive. | Plan the move to 6.1.x or 7.0.x, and confirm the target line with the Redmine download page before scheduling. |
| Persistent files and secret key | Uploaded files and the secret key base must remain available to the new container, or attachments and sessions may fail. | Keep the files volume mounted at the same path and keep SECRET_KEY_BASE unchanged across the upgrade. |
What to back up and inventory before changing the image tag
A tag change is quick, but the data and configuration behind it are not. The upgrade guide calls for backing up the database and uploaded files, then copying configuration, uploads and third-party plugins before running migrations, and the cards below cover each of those items for a containerized Redmine.
Database backup taken first
Take a dump of the Redmine database before you touch the image tag, and store it outside the host running the containers. Migrations on start change the schema, so a dump taken after the new container has started is no longer a clean rollback point. Confirm the dump restores into a scratch database and that you can read the issue count and recent journals from it. Match the dump tool to your database engine, whether PostgreSQL, MySQL or SQLite, since the procedure differs for each.
Upgrade guideFiles volume holding attachments
Uploaded attachments live in the files volume mounted at the container's files path, not in the image. Record the volume name or host path, copy it in full, and check its size against the free space on the target host. Because the official image runs the migration on start, an interrupted upgrade can leave the volume and the database out of step, so keep the copy from the same backup window as the database dump.
Secret key and configuration to carry forward
Record the SECRET_KEY_BASE value and every environment variable and mounted configuration file used by the current container, including database settings and the email configuration. A new container without the same secret key base will not decrypt existing sessions or stored secrets, so treat the value as a credential and keep it in your secrets store. Write the list down before you edit the compose file or deployment manifest.
Plugin and theme inventory
List every plugin and theme mounted into the container, with its version and the Redmine versions it declares it supports. The upgrade guide asks you to carry third-party plugins across, and a plugin that does not declare support for the target line can fail its migration or break pages after start. Ask the plugin author or check its repository before choosing the target tag, and note which plugins you must replace or rebuild.
Staging copy for rehearsal
Run a second container from the same image tag you intend to use, pointed at a copy of the production database and files. Set REDMINE_PLUGINS_MIGRATE in the staging run only if your plugins need it, and watch the start logs for migration errors. Use the rehearsal to measure how long the migration takes on your data and to confirm that logins, attachments and plugin pages work before production is touched.
Written rollback point
Write down the exact previous image tag, the backup identifiers, the time of the snapshot and the person who can approve a restore. Rolling back a Redmine image is not enough on its own, because the migrated database usually cannot run the older code. The rollback is therefore the paired restore of the database and files taken in this window, so test that restore path in staging before the change window opens.
How to run the Docker image upgrade step by step
This sequence moves a containerized Redmine to a new image tag with a verified backup, a staging rehearsal, a documented rollback point at each stage, and a clear decision on whether plugin migration stays enabled afterward.
Take and verify the backups
Before changing anything, back up the database and the persistent files volume that holds uploaded attachments, and copy the configuration, including the SECRET_KEY_BASE value and any environment file. The operator who owns the database and host performs this step. It is done when you have restored at least one backup to a scratch location or confirmed the restore procedure with your database team, and you can open the copied files and see attachments present. This backup is your primary rollback point for everything that follows.
Record and pin the current image tag
Note the exact tag the running container uses, along with the image digest if your registry provides one, and the list of installed plugins in the files volume. Pin that tag in your deployment file so a restart cannot pull a different image by accident. The check is that a fresh container from the pinned tag starts and serves the same version shown under the administration information page. If it does not, stop here and fix the baseline before upgrading.
Rehearse the upgrade on a staging copy
Restore the backup into a staging environment with the same database engine and volume layout, then start it with the target tag from the official Redmine image on Docker Hub. Confirm the target versions in the official image listing and in the Redmine download page before you pick a tag. Watch the logs for the migration output and any plugin errors. The rehearsal is complete when the staging instance starts cleanly and you have a written list of plugin problems to resolve, which becomes your go or no-go input.
Set or confirm REDMINE_PLUGINS_MIGRATE
If the installation has plugins, set REDMINE_PLUGINS_MIGRATE in the container environment so the image runs plugin migrations on each start, in addition to the core db:migrate that runs by default unless REDMINE_NO_DB_MIGRATE is set. Confirm that REDMINE_NO_DB_MIGRATE is not set. Check each plugin against the target Redmine version first, because a plugin that is incompatible will fail at this stage whatever the variable says. The check is that the staging logs show plugin migrations completing without errors.
Change the image tag and start the new container
In the production deployment, change only the image tag to the target release, keeping the same database connection settings, the same SECRET_KEY_BASE, and the same persistent files volume mount. Recreate the container and watch the startup logs for the db:migrate output and for the plugin migration output if it is enabled. The step is done when the logs show the migrations finished and the application server reports it is listening. If a migration fails, stop the container, restore the database from the backup taken in the first step, and revert the tag to the pinned value.
Verify login, projects, attachments and API access
Sign in with an administrator account and a regular user account, open several projects and check that issues, wiki pages and time entries display correctly. Open an attachment that was uploaded before the upgrade to confirm the files volume is intact. Then make an authenticated request to the REST API from a known API key, since the API must remain enabled for integrations to work. The check is a short written list of results for each item. Any failure is a reason to roll back to the pinned tag and the restored database rather than patching in production.
Decide whether to keep REDMINE_PLUGINS_MIGRATE set
Once the instance is confirmed working, decide whether to keep REDMINE_PLUGINS_MIGRATE enabled. Leaving it set runs plugin migrations on every container start, which is convenient but means a restart can change plugin data without a deliberate upgrade. Many teams remove it after a successful upgrade and re-enable it only for the next planned change, and record that choice in the change log. Also complete the remaining steps in the upgrade guide, which cover clearing the cache and restarting, and confirm the result in the same change record.
Why SECRET_KEY_BASE and the files volume decide whether the upgrade holds
The files volume and the SECRET_KEY_BASE value are the two pieces of state that outlive a container, and an upgrade that replaces the container without preserving them will break in predictable ways. Redmine stores attachments on disk under its files directory, and the database holds a record pointing at each file. If the new container starts with an empty or different volume, the database still lists every attachment while the files are gone, so issue pages load with broken downloads. The rule is simple: the database and the files must come from the same point in time and must both be carried into the new container. Before you start, confirm in the official image documentation which path the image uses for files, how the volume should be mounted, and whether any settings are read from environment variables or from a configuration file you mount yourself.
SECRET_KEY_BASE is the Rails secret that signs session cookies and encrypts certain stored values. The image reads it from the environment, so the value you pass to the new container must be the same one the running container uses. If it changes, existing user sessions become invalid and users are signed out, which is an inconvenience. The more serious case is encrypted data written with the old key, which may not decrypt under the new one and can cause failures in features that depend on it. Record the current value from the running container before you replace it, store it in your secrets manager, and confirm with the image documentation and the Redmine upgrade guide which stored values depend on it in the release you are moving to.
Treat the database backup, the files volume copy and the secret as one restore set, and verify them together. A useful check after the new container starts is to open a project with known attachments, download one file, and confirm an issue created before the upgrade still shows its history. If any of these fail, stop and compare the mounted volume path, the secret value and the database snapshot before running further changes. Keep the old container and its volume untouched until the checks pass, because that is your fastest route back if the migration or a plugin fails.
Choosing a rollback approach for a failed container upgrade
A snapshot restore returns both the database and the files volume to the state they had before the upgrade started, then redeploys the old image tag. It is the most complete rollback because it reverses schema changes made by db:migrate and any plugin migrations, which an old image cannot undo on its own. The cost is that everything written after the snapshot is lost unless you capture it first, and the restore window is downtime for every user.
- Protects against: failed schema changes, broken plugin migrations and corrupted attachments that the old image cannot read.
- Costs in downtime: the full time to stop the service, restore the database, restore the volume and start the old tag, plus validation.
- Costs in data drift: issues, time entries and comments created after the snapshot are lost unless you freeze writes or replay them.
- Confirm in your environment: that the snapshot covers the database and the files volume at the same point in time, and that your backup tooling has been used for a restore before.
- Confirm the old tag: that the previous image tag is still pullable from your registry, since public tags can be removed or rebuilt.
Before relying on this path, check the backup procedure in the Redmine upgrade guide and confirm that a restore has been timed on a copy of production data.
Keeping the previous container stopped but intact lets you switch traffic back by starting it again, usually much faster than a full restore. This approach works well when the upgrade fails at startup or within a short window. It does not reverse database changes, so once the new version has run db:migrate against the shared database, the old container may refuse to start or behave incorrectly.
- Protects against: image-level failures, bad configuration, container startup errors and regressions the team spots quickly.
- Costs in downtime: the time to stop the new container and start the old one, plus any DNS or proxy change.
- Costs in data drift: low if the old container never touched the database, but high once the new version has migrated a shared schema.
- Confirm in your environment: whether the old and new containers use separate database copies or the same database, because this decides whether switch-back is safe.
- Confirm the plugins: that plugins installed in the old image still load against the old schema after a rollback attempt.
This approach is strongest when paired with a snapshot. Test the switch-back command sequence so that operators can run it under pressure without reading documentation.
Rehearsing the rollback on a staging copy of production tests the restore path before it is needed. The rehearsal shows how long restores take, which plugins break on the old tag after a migration, and whether the team's runbook matches reality. It does not protect production by itself, but it turns the other two approaches from assumptions into tested procedures.
- Protects against: untested runbooks, missing credentials, wrong volume mappings and plugin surprises that only appear after a restore.
- Costs in effort: a staging environment sized close enough to production to be representative, plus people's time to run the drill and record results.
- Costs in data drift: staging data goes stale quickly, so the rehearsal reflects the copy date rather than live usage.
- Confirm in your environment: that staging uses the same image tags, database engine version and plugin set as production, and that secrets such as
SECRET_KEY_BASEare restored the same way. - Confirm the record: that the rehearsal produces measured timings and a go or no-go checklist that the change owner signs off.
Repeat the rehearsal whenever the target tag, a plugin or the database changes. Document the results alongside the change record so that the decision to roll back is based on evidence.
What makes a Redmine Docker upgrade take longer
This table lists the factors that stretch a containerized Redmine upgrade and the direction each one pushes the effort. Read each row as a question to answer about your own installation before you estimate the work. The main takeaway is that plugins, custom image changes and the number of environments usually matter more than the size of the core upgrade itself.
| Driver | Effect on the upgrade | What to check |
|---|---|---|
| Number and age of plugins | Each plugin must declare or be tested for compatibility with the target release, and abandoned plugins may need replacing before the upgrade can finish. | List every plugin in the image or plugins volume, its declared Redmine version, and whether its maintainer still publishes releases. |
| Custom themes | Themes that depend on removed icon classes or template markup can render broken pages even when the core upgrade succeeds. | Confirm which themes are active, whether they override core views, and whether they were tested on the target tag. |
| Database size | Larger databases lengthen db:migrate on start and make backup and restore rehearsals take longer. | Measure the current database size and time a restore into a scratch environment before scheduling a window. |
| Attachment volume size | Large files directory increases copy time for backups and slows the move to a new volume or host. | Check the size of the files volume and confirm that it persists across container replacement. |
| Number of environments to rehearse | Each extra environment (test, staging, production) repeats the image pull, migrations and plugin checks, so effort grows with every copy. | Decide which environments must match production and whether they share the same plugin set and data snapshot. |
| Custom Dockerfiles or Compose changes | Local build steps, extra packages or modified entrypoints must be re-applied and retested on each new image tag. | Diff the custom Dockerfile and Compose file against the official image defaults and note every change. |
| External services such as email and LDAP | Mail relays, LDAP directories and SSO proxies must keep working through the upgrade, and changed settings can block sign-in after restart. | Confirm SMTP and LDAP settings in the environment file, and test sign-in and outbound mail on the staging copy. |
| Background jobs such as Sidekiq | A separate worker container must run the same image tag and reach the same database and files, so mismatched workers cause failed jobs. | Check whether a worker runs in the deployment, that it uses the target tag, and that queued jobs drain before cutover. |
| Secret key and stored configuration | A missing or changed SECRET_KEY_BASE can invalidate sessions or stored encrypted data, forcing extra recovery work. | Confirm the key is stored outside the container, is identical across all containers, and is included in the backup. |
Questions teams ask before upgrading Redmine in Docker
What does it cost to upgrade Redmine running in Docker?
The Redmine software is free under GPL v2, so the cost comes from the work around it: planning, staging a test copy, running the upgrade, checking plugins, and the hosting and people who keep the system running afterward. Costs drive from the number of installed plugins, how much customization exists, how many database and file volumes must be handled, and whether the upgrade crosses one release line or several. Some costs are one-time, such as the upgrade project itself, while hosting, backups and ongoing maintenance recur. Ask any partner for a written, fixed-scope quote that lists the environments covered, the plugins included, the testing steps, the rollback plan and what is excluded. DeployOpen does not publish a price list, so the quote follows from the agreed scope.
How long does a Redmine Docker upgrade take?
The window depends on the size of the database, the volume of uploaded files, how many plugins need migrations, and how much testing your business requires before go-live. The image runs db:migrate on start unless REDMINE_NO_DB_MIGRATE is set, so migration time grows with schema changes and data volume. Plugin migrations add time when REDMINE_PLUGINS_MIGRATE is set. Your change window also depends on how long you can accept downtime and whether you need a tested rollback. Measure the migration on a copy of production before setting a window, and ask any provider to state the duration and its assumptions in the written scope rather than a generic estimate.
How much of our staff time does a Redmine Docker upgrade need?
Expect staff time in four areas: a Redmine administrator who knows the current configuration, someone who owns the database and storage backups, a person who can confirm plugin behavior with the people who use them, and a reviewer who signs off on the test results. The administrator needs access to the Compose file or deployment manifest, the environment variables, the SECRET_KEY_BASE value and the persistent files volume. Business users must test their common workflows after the upgrade. The effort rises with the number of custom fields, workflows, plugins and integrations, so inventory those before the project starts.
Can our internal team upgrade Redmine in Docker without a partner?
Yes, if your team can read the release notes, back up the database and the files volume, keep the old image tag available for rollback, and test the result before users return. The official image handles the core migration on start, so a Docker-literate team can often do a simple upgrade alone. Consider a partner when you run many plugins, have custom themes, use a database with a complex setup, or need evidence for an audit. Whatever the choice, agree the scope and acceptance tests in writing before work begins. Ask the partner to show how they handle plugin compatibility, backups and rollback.
What happens to our Redmine plugins during a Docker upgrade?
Plugins are the most common source of upgrade trouble. Each plugin must declare compatibility with the target Redmine line, and some depend on Rails or plugin API behavior that changed. Keep third-party plugins in the persistent setup you copy to the new container, and set REDMINE_PLUGINS_MIGRATE so plugin migrations run on start. Test each plugin on a staging copy before production. Plugins with no maintainer for the target release may need replacement or a rewrite, which adds cost and time. Check compatibility before choosing the target tag, and confirm each plugin's status with its authors or your own test results.
How do we recover if a Redmine Docker migration fails?
Recovery depends on a backup you tested before starting. Take a database dump and a copy of the files volume, record the current image tag, and keep the old container and its configuration available. If the migration fails, stop the new container, restore the database and files from the backup, and start the previous image tag. Do not run a newer migration against a database you intend to roll back. Confirm that SECRET_KEY_BASE stays the same across both versions, because a changed value can invalidate sessions and stored encrypted data. Write the rollback steps and the decision point into the change plan so the team can act without guessing.
How the container, database and files volume fit during the upgrade
The upgrade starts with a backup of the database and the files volume, taken before anything changes. The image tag is then changed and the container starts, where the image runs db:migrate by default and, if REDMINE_PLUGINS_MIGRATE is set, the plugin migrations as well. Verification comes last, and if it fails the snapshot taken at the start is restored as the rollback branch.
Upgrade sequence with the backup-based rollback branch for a containerized Redmine.
How DeployOpen scopes, runs and supports a Redmine Docker upgrade
DeployOpen plans a containerized Redmine upgrade as a written, fixed-scope engagement that runs inside your own infrastructure. The work moves from a documented inventory and backup through a rehearsal on a copy of production to a handover your team can repeat.
How we scope
- We confirm the current Redmine tag, the target image tag and the database engine before any change is planned.
- We inventory installed plugins, their declared compatibility and whether each one has a maintained replacement.
- We record the volumes holding files and configuration, including the secret key base and any environment overrides in use.
- Engagements are fixed-scope, so the written scope states which environments, plugins and rollback steps are covered.
How we build
- We take a database dump and a copy of the files volume, then verify that both restore cleanly on a separate host.
- We run the upgrade on a staging copy with the target image, checking whether automatic db:migrate completes on start.
- We set REDMINE_PLUGINS_MIGRATE only where plugins need it, then test each plugin's pages and background jobs.
- We document the rollback path and rehearse it before the production window.
How we hand over
- You receive the runbook with exact image tags, environment variables, volume mappings and the order of steps.
- We provide the test checklist used on staging, with results recorded for each plugin and login path.
- Your team runs a supervised production upgrade or observes ours, so the steps are known before the next release.
- Documentation covers where backups are stored and how to restore them, in your own environment.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for future Redmine releases.
- A retainer can cover monitoring of new stable tags and planning of the next upgrade window.
- Post-upgrade issues are triaged against the written scope, and any added work is agreed in writing first.
- Ask any provider to confirm how they handle plugin breakage and rollback after go-live.

