Upgrading Wazuh on Docker: the supported path and why it matters
A Docker-hosted Wazuh stack that must move to a newer 4.x release is usually a stack someone built months or years ago, often with a custom docker-compose.yml that has drifted from the default files. The first decision is not which image tag to pull but which upgrade path your starting version requires. The current release line is 4.14, with 4.14.9 released on 14 October 2026, and the 4.14 line has shipped patch releases roughly every one to two months since March 2026. Staying on an older patch level means running without the fixes in those releases, so the upgrade is a security task as much as a version task.
The supported Docker path has two branches. Teams running the default Compose files can check out the release tag that matches their target and apply it. Teams with a custom Compose file must update it by hand, regenerate certificates and replace manager configuration files, and the Docker upgrade guide describes that route in detail. Two version-specific rules matter early: upgrades from versions before 4.8 require the dashboard defaultRoute to be changed to /app/wz-home, and upgrades from 4.3 and earlier may need old certificate and configuration paths updated. Confirm your current version and whether your Compose file is custom before you read any further steps.
Data and certificates persist in mounted volumes, so a container replacement does not by itself erase alerts or configuration. That persistence is also the risk: an old volume mapping, a renamed path or a regenerated certificate that the indexer does not trust can leave a stack that starts but does not work. Before you change anything, record the current image tags, the Compose file hash, the volume names and the certificate files, and plan a snapshot or backup of the indexer data. After the upgrade, check that alerts, agent connections, dashboard login and custom rules and decoders all survived, not only that the containers are running.
What changes between Wazuh versions and what you must do
This table lists the changes that affect a Docker-based Wazuh upgrade, what each change does to your deployment, and the action to take. Read it before you choose a Compose path, then work down the rows that match your current version and whether you edited your Compose file.
| Change | Impact | Action needed |
|---|---|---|
| Default Compose files checked out at the release tag | Your deployment takes the default configuration shipped with the target release | Check out the release tag, then confirm the default Compose file matches the version you are moving to |
| Custom docker-compose.yml updated by hand | Your custom file does not change on its own, so new image versions and settings must be merged in manually | Compare your file with the target release defaults and carry over only the changes you still need |
| Certificates regenerated | Components authenticate with new certificates, so existing certificates may no longer match | Regenerate certificates as the upgrade instructions describe, then confirm each component starts and connects |
| Manager configuration files replaced | Local edits to manager configuration can be overwritten or fall out of step with the new release | Back up your current files, replace them as documented, then reapply your customizations and record each change |
| Dashboard defaultRoute changed to /app/wz-home (upgrades from before 4.8) | Dashboard may open on a route that no longer exists for the new release | Set the defaultRoute value to /app/wz-home in the dashboard configuration before you start the dashboard |
| Old certificate and configuration paths (upgrades from 4.3 and earlier) | Paths referenced by your Compose file or configuration may point to locations the new release does not use | Update the old certificate and configuration paths to the current locations, then validate the file before startup |
| Data and certificates persisting in mounted volumes | Indexed alerts, configuration and certificates should survive container replacement if volumes stay mounted | Confirm volume names and mount points are unchanged, then check that alerts, agents and dashboard settings are still present after startup |
What to prepare before touching the Compose stack
Every Docker upgrade starts from a state you can return to. The cards below are preparation tasks the team owns before anyone edits a Compose file or pulls a new image. Together they make the current deployment recoverable, reviewable and reproducible in a staging environment first.
Back up the mounted volumes
Docker Wazuh deployments keep indexed alerts, agent state and certificates in mounted volumes, and the upgrade guide relies on those volumes persisting. Before changing anything, stop writes where your design allows it, then take a copy of each volume or bind-mounted directory, including the indexer data and the manager configuration. Record the checksum or file listing so you can prove later that the copy is complete. Confirm with your own runbook how long a restore from this copy takes.
Upgrading Wazuh DockerCopy the Compose and environment files
Keep an untouched copy of docker-compose.yml, every override file and every .env file the stack reads. If you use the default Compose files from the release tag, record the tag you started from. If you maintain a custom file, this copy is the only record of the edits you made by hand, so store it in version control with a dated commit. Without it, you cannot tell which lines were yours and which came from the release.
Inventory custom rules and decoders
List every custom rule, decoder and CDB list on the manager, along with the file path each one lives in. Note which ones were added as new files and which overwrite a default file, because overwritten defaults are the changes most likely to be lost or conflict after an upgrade. Mark which mounted path holds each file so you know whether it survives a container replacement. Use this list later to run wazuh-logtest checks against the upgraded stack.
Inventory dashboard and Compose customizations
Document every dashboard change, saved object, custom index pattern, dashboard setting and added Compose service, port mapping or network. Export dashboard saved objects you rely on so they can be restored if an upgrade changes them. For the Compose stack, list any edits you made to certificate paths, the dashboard default route or manager configuration. These edits decide which parts of the upgrade must be redone by hand.
Record certificates and their paths
Upgrades can require regenerating certificates, and the guide notes that older releases may need old certificate and configuration paths updated. Before you start, record where each certificate and key lives, who issued it, and which services trust it. Keep a copy of the existing certificate set, since it is the reference point if the regenerated set causes a connection failure. Confirm with your security team how regenerated certificates are approved and distributed.
Build a staging environment from production
Create a staging stack from a copy of production data and the same Compose files, then run the full upgrade there first. Use the copy to check that dashboards load, alerts still index, agents reconnect and your custom rules still fire. Keep staging isolated from production agents and network paths so it does not receive live events. Record how long the staging run took and what needed manual work, then use that record to plan the production window.
Default Compose files or a custom docker-compose.yml
The default path applies when your deployment runs the Compose files shipped with Wazuh, without structural changes. You check out the release tag that matches your target version in the Wazuh Docker repository, then run the upgrade steps the documentation describes for that tag. Because the shipped files already contain the certificate generation and manager configuration layout for that release, most of the manual work is verifying that your environment values carried over correctly. Data and certificates persist in mounted volumes, so the upgrade replaces containers and images rather than the stored state.
- Edit scope: Your changes should be limited to environment values, such as passwords and ports, that you recorded before the upgrade.
- Version tag: Confirm that the tag you check out matches the release you intend to run, and record the previous tag so you can roll back.
- Certificates: Follow the regeneration step the release notes for that tag describe, rather than reusing old certificate files.
- Configuration files: Compare any manager configuration you mounted against the shipped copy for the new tag before you start the containers.
- Volume checks: Confirm that indexer data, server state and dashboard settings are still present after the containers start.
Before you run this path, confirm that your stack has no hand-edited Compose services, so that the checkout will not overwrite your changes.
The custom path applies when your team has changed the Compose file itself, for example to add network segments, resource limits, extra volumes, reverse proxies or private registries. You cannot simply check out a new tag without losing those edits, so you update the existing docker-compose.yml by hand. That means applying the changes the new release requires, regenerating certificates, and replacing manager configuration files, then confirming that your additions still work. The risk is drift: each change you made over time must be re-applied or deliberately dropped.
- Diff first: Compare your current file with the shipped file for your current release, so you know every local change before you edit anything.
- Certificate regeneration: Regenerate certificates in the same order the documentation describes, and make sure any custom paths still point to the new files.
- Manager configuration: Replace manager configuration files carefully, and reapply your custom rules, decoders and settings from your own change record.
- Older versions: Upgrades from versions before 4.8 require the dashboard defaultRoute to change to /app/wz-home, and upgrades from 4.3 and earlier may need old certificate and configuration paths updated.
- Volume checks: Verify that persistent volumes kept data and configuration, and keep a copy of the original file for rollback.
To tell which path applies, run a diff between your file and the shipped file for your current release. If the diff contains anything beyond environment values, you are on the custom path.
The two paths need different test plans. On the default path, testing can focus on confirming that the platform starts, agents reconnect and alerts flow, because the deployment structure is known. On the custom path, testing must also cover every local change you carried forward, since any of them may have broken silently. Plan the tests before the maintenance window opens, and agree who signs off on the results.
- Startup test: Confirm that all containers reach a healthy state and that the dashboard loads with the expected version.
- Agent test: Check that a sample of enrolled agents reports to the manager after the upgrade.
- Alert test: Generate or replay a known event and confirm it appears in the indexer and dashboard.
- Custom element test: For the custom path, check each local change you made, such as proxies, network rules and resource limits, one at a time.
- Rollback test: Confirm you can restore the previous file, tag and volume backup before you start.
Write the results into your change record, including the Compose file version you used, so the next upgrade starts from a known baseline.
How the Compose stack, volumes and certificates fit during the upgrade
The diagram starts at the decision between the default Compose files from the release tag and a custom docker-compose.yml that you edit by hand. Both paths regenerate certificates and replace manager configuration files, and the rollback point sits before the stack is recreated. The components that matter are the manager, indexer, dashboard and agents, each reading from mounted volumes that hold data and certificates. Before you close the change, check that those volumes still hold alerts, configuration and certificates.
Decision path and rollback point for a Docker Compose upgrade.
The upgrade sequence with checks and rollback points
This sequence takes a Docker-based Wazuh deployment from its current version to the target release tag while keeping a restore path at each stage. Each step closes with a check, so the team knows whether to continue or roll back.
Back up volumes and configuration
Before changing anything, the operator stops writes where practical and copies the Docker volumes that hold indexer data, manager state and certificates, along with the current Compose file, any custom configuration files and the environment file. Store the copies outside the Docker host. The step is done when the team can restore one volume from its copy into a scratch location and read the files back. That restore test is the rollback point for every later step.
Choose the default or custom Compose path
The operator decides whether the deployment runs on the default Compose files from the Wazuh release or on a custom docker-compose.yml that the team edited by hand. Default files can be replaced by checking out the release tag. A custom file has to be merged with the new version's changes, which is the slower path and the one most likely to break. Record the choice and the diff between the current and target files. The check is a written note of which path applies and a list of every local change that must be carried forward.
Check out the target tag or edit the Compose file
On the default path, the operator checks out the Wazuh release tag that matches the target version in the Docker repository. On the custom path, they update image tags and any changed keys in the Compose file by hand, following the upgrade guide for that version. Confirm the image tags in the file match the target release before going further. Use the release notes to confirm the target version is the one you intend to run. The check is a diff that shows only the intended version and configuration changes.
Regenerate certificates and replace manager files
The operator regenerates the certificates the Docker deployment uses, following the procedure in the upgrade guide, and replaces the manager configuration files with the versions for the target release, reapplying only the local changes recorded earlier. Certificates and configuration live in mounted volumes, so keep the backed-up originals until the upgrade is verified. The check is that the new certificate files exist in the expected paths and the manager configuration validates before any container is started.
Apply path changes for older starting versions
Operators upgrading from a version before 4.8 must change the dashboard defaultRoute to /app/wz-home. Upgrades from 4.3 and earlier may also need older certificate and configuration paths updated to the current layout. Confirm the starting version from the backup and apply only the changes that version requires. The check is a search of the dashboard and manager configuration for the old path values, returning none, and a written list of each path change made so it can be reversed if needed.
Recreate containers on the mounted volumes
The operator stops the stack and recreates the containers from the updated Compose file so that they attach to the same named or bind-mounted volumes. Do not delete volumes during this step. Watch the startup logs of the indexer, server and dashboard in order until each reports ready. The check is that all containers report running and healthy, and that no container restarts in a loop. If a container fails, stop the stack, restore the Compose file from backup and start the previous version on the untouched volumes.
Verify volumes kept data and configuration
Confirm that the data survived the recreation. Check that the indexer still reports the expected indices and alert counts from before the upgrade, that the manager has its rules, decoders and agent registrations, and that the custom configuration files are present with the intended content. Compare results with the figures recorded in the first step. The check is a written comparison of before and after values. A mismatch means the rollback point from the first step is the next move, not a rebuild on empty volumes.
Validate agents, dashboard and alerts
Log in to the dashboard, confirm that the agent list shows the enrolled agents as active, and check that new events from a test endpoint arrive and produce alerts. Review that custom rules and decoders still fire by replaying a known log sample. Keep the old stack and volume copies until this check passes on the next business day's traffic. The step is done when agent connectivity, dashboard access and alert generation all match the pre-upgrade baseline.
How to test the upgrade and roll it back
A Docker upgrade is only finished when the data, the dashboard and the agents all behave as before. The cards below cover the checks to run after the new containers start and the rollback path to keep ready until those checks pass. Confirm each item against your own Compose file, volume layout and agent count, since the documentation describes the general pattern rather than your environment.
Confirm volumes kept alerts and configuration
Upgrades keep data and certificates in mounted volumes, but a changed volume name or path in a custom docker-compose.yml can leave the new containers pointing at empty storage. Before the upgrade, record the volume names and the host paths they map to. After the upgrade, check that existing alerts are searchable in the dashboard, that recent time ranges return data, and that custom files such as local rules and decoders still exist inside the server container with the expected content.
Confirm the dashboard and default route
Open the dashboard over the same hostname and certificate your users rely on, then log in with an account that existed before the upgrade. If you upgraded from a version before 4.8, the dashboard defaultRoute must point to /app/wz-home, so confirm that the landing page resolves and does not return an error or a blank screen. Also confirm that the login page presents the expected certificate chain, because regenerated certificates change what clients see.
Confirm agents reconnect
Agents keep their enrollment keys and configuration, but they must reach the server on the same ports and with certificates the server accepts after regeneration. Compare the agent count in the dashboard with the count recorded before the upgrade, and check that agents report a recent last-keepalive time. Agents that do not return usually point to a certificate mismatch, a changed port mapping or a firewall rule that was not carried over to the new host.
Test custom rules and decoders
Run representative sample events through wazuh-logtest on the upgraded server and compare the decoded fields and the matched rule IDs with your pre-upgrade results. Keep a saved set of sample logs from each custom source you monitor. A rule that loads without error can still fail to match after a change in decoder ordering or rule file location, so a matched rule ID is the check that matters.
Keep a rollback plan ready
Before changing anything, back up each persistent volume and keep a copy of the previous docker-compose.yml, the .env file and the generated certificate directory. If checks fail, stop the new stack, restore the volume data and the previous Compose file, and start the old images. Confirm in your own environment that the restore has been rehearsed on a copy, because a backup that was never restored is not a tested rollback. Keep the old volumes untouched until the checks above pass.
What makes a Docker Wazuh upgrade take longer
This table lists the factors that most often lengthen a Docker-based Wazuh upgrade and the effect each one has on effort. Read each row before scoping the work, and use the check column to see what your environment already tells you. The main takeaway is that custom Compose files, an old starting version and the absence of a staging environment usually add the most work.
| Driver | Effect on effort | What to check |
|---|---|---|
| Custom Compose edits | Default files can be checked out by release tag, but a hand-edited docker-compose.yml must be merged manually and tested again | Diff your current file against the default for the installed version and list every change |
| Starting version | Upgrades from versions before 4.8 require the dashboard defaultRoute change to /app/wz-home, and 4.3 or earlier may need old certificate and configuration paths updated | Confirm the exact version currently running before choosing an upgrade path |
| Number of custom rules and decoders | Each custom file may need review against the new release and retesting with wazuh-logtest | Count local rule and decoder files and note which ones changed from defaults |
| Dashboard customizations | Custom views, saved objects or configuration changes must be exported and checked after the upgrade | Inventory dashboard edits and confirm where they are stored |
| Certificate scope | Certificates are regenerated during the upgrade, so every component and any agent or API client that trusts them may need attention | List which services, clients and load balancers rely on the current certificates |
| Data volume size | Persistent volumes keep data across the upgrade, but larger indexes make backup and post-upgrade checks take longer | Measure the size of the mounted volumes and confirm a recent backup exists |
| Number of agents | Agents keep reporting through the upgrade, but agent upgrades and alert validation scale with the fleet | Check how many agents are enrolled and which versions they run |
| Staging environment | Without a staging copy, the first real test of the new Compose file happens on production data | Confirm whether a restorable copy of the deployment exists outside production |
Questions buyers ask before upgrading Wazuh on Docker
What drives the cost and effort of a Wazuh Docker upgrade?
The main driver is whether the deployment uses the default Compose files or a custom docker-compose.yml. Default files let you check out the release tag and rerun the documented steps. A custom file means someone has to merge the new image tags and settings by hand, regenerate certificates and replace manager configuration files without losing local changes. Other effort drivers are the starting version, since upgrades from versions before 4.8 need the dashboard defaultRoute changed to /app/wz-home, and upgrades from 4.3 and earlier may need old certificate and configuration paths updated. The number of custom rules, decoders and dashboards also adds review work. Ask any provider for a written scope that lists each of these items so the quote reflects your actual files.
Can our own team upgrade Wazuh on Docker without outside help?
Yes, if the team can read Compose files, work with Docker volumes and follow the upgrade guide closely. The documented path is clear for default deployments. Custom deployments need someone who can compare the old and new configuration, spot removed or renamed keys and test the result before production use. Outside help is most useful when the environment has heavy customization, several clusters or tight change windows, or when no one on staff has run the upgrade before. Whichever route you choose, agree on who owns the rollback plan and who signs off on the post-upgrade checks.
What does the upgrade need from our team before it starts?
Plan for four things. First, administrative access to the Docker host, the repository holding your Compose files and the Wazuh dashboard, with an account that can read the manager configuration. Second, a change window long enough to take a backup, stop services, pull images, regenerate certificates and validate alerts. Third, a test copy built from a backup of production, so configuration changes are proven before they reach live agents. Fourth, a record of your custom rules, decoders, dashboards and any local edits to the Compose file. Confirm with your provider which of these they will require in writing, and who in your organization approves production changes.
How long does a Wazuh Docker upgrade take, and what sets that?
The duration depends on the size of the change, not on a standard figure. The main factors are the starting version, the number of Compose customizations, the volume of data in the mounted volumes and how many manager and indexer containers run. Time also goes to testing against a copy and to reviewing custom content after the move. Wazuh publishes patch releases on the 4.14 line at intervals of roughly one to two months, so check the release notes for the target version before you schedule work. Ask for a timeline that separates preparation, test runs, the production window and post-upgrade validation.
Do our data and certificates survive a Wazuh Docker upgrade?
They should, because the upgrade guide states that data and certificates persist in mounted volumes. The upgrade does not replace them by default. Certificates are regenerated as part of the process, though, so the certificate files are rebuilt and the services must trust the new set. Before you start, confirm the volume names and host paths in your Compose file, take a snapshot or copy of each volume and verify that the indexer still holds alerts and that agents reconnect after the upgrade. Check configuration files too, because a custom manager configuration can be overwritten when you replace the files.
What happens if a Wazuh Docker upgrade fails partway through?
Recovery depends on the backup you took before starting. A failed upgrade usually leaves some containers on the new images and others on the old ones, or leaves a regenerated certificate set that the older components do not trust. The safe response is to stop the changes, restore the volume copies and the previous Compose file, then start the old version and confirm agents and dashboards work. Only then retry, with the failure cause recorded. Ask your provider how rollback is tested, who decides to roll back during a window, and how long the business can tolerate reduced monitoring.
Does the Wazuh license or support contract change who can perform the upgrade?
The self-hosted Wazuh software is open source under the GNU General Public License version 2, with an exception that permits linking with the OpenSSL library, and it has no license fee. Upgrading it does not require a license purchase. Support is a separate question. Wazuh Cloud is the vendor's managed service, and its paid plans include at least Standard support, but a self-hosted Docker deployment is not the same product. Confirm with Wazuh which support terms apply to your setup and whether your provider's scope needs any vendor involvement.
Which checks should we run after the Wazuh Docker upgrade?
Run checks in three groups. Confirm the containers are healthy and running the expected image tags. Confirm the dashboard loads, the API responds and that agents show as active and send events. Then confirm that alerts reach the indexer and appear in the dashboard, and that custom rules and decoders still fire. Test a sample log against your custom content using wazuh-logtest, since this catches changes that a healthy container status will not reveal. Record the results so the next upgrade has a baseline to compare against.
How DeployOpen scopes and delivers a Wazuh Docker upgrade
DeployOpen plans a Wazuh Docker upgrade around your own Compose setup, certificates and volumes before anything changes. The work is delivered as a fixed-scope engagement inside your infrastructure, with the checks and handover agreed in writing before the work starts.
How we scope
- Inventory whether you run default Compose files from the release tag or a custom docker-compose.yml
- Record current Wazuh version, target 4.14 patch release and every mounted volume and certificate path
- Identify manager configuration files and custom rules, decoders and dashboard settings that must survive the upgrade
- Agree in writing the deliverables, validation checks and what your team provides before work begins
- Confirm whether ongoing support or a retainer should follow the upgrade
How we build
- Take and verify backups of volumes and configuration before any container is stopped or replaced
- Apply the version-specific steps, such as dashboard defaultRoute changes for versions before 4.8
- Regenerate certificates and update old certificate or configuration paths where the starting version requires it
- Test the upgraded stack in a non-production copy built from the same Compose files and volumes
- Check that persistent volumes kept indexed alerts, agent enrollment data and configuration after each step
How we hand over
- Document the exact Compose files, image tags, environment values and certificate locations used after upgrade
- Provide a checklist confirming volume data, configuration, dashboard access and agent connectivity
- Record rollback steps tied to the backups taken before the upgrade started
- Walk your operations team through the final stack and the changes made to custom files
- Hand over a list of follow-up items, such as agent upgrades and retesting custom detection content
How we support
- Engagements are fixed-scope, so scope changes are priced and agreed in writing before they proceed
- Ongoing support, upgrades and continuous testing are available as retainers for later Wazuh releases
- Next patch releases in the 4.14 line can be scoped as separate, repeatable upgrade work
- Ask your DeployOpen contact how support covers Docker host patching and container image updates
- Confirm with your team which systems and retention periods must be checked after each change

