When running Wazuh on Docker fits your environment
A platform or security team that wants Wazuh running in infrastructure it controls usually has four realistic routes: the all-in-one installation assistant, a distributed installation on separate hosts, Kubernetes, or configuration management. Docker sits between the first two. Wazuh's deployment options page lists Docker as a documented option alongside the assistant, the prebuilt OVA and AMI, Kubernetes, the offline guide, source installs, Ansible and Puppet. The stack is built from the same four components: the Wazuh indexer that stores alerts, the Wazuh server that runs decoders and rules, the Wazuh dashboard, and the Wazuh agents on endpoints. Agents are installed on hosts, not in containers, so the Compose project only covers the three central components.
A Compose stack is reasonable when you want the central components defined as code, you can run them on a host with a supported Docker engine and enough memory for the indexer, and your team is comfortable managing containers, volumes and networks itself. It also suits labs, proofs of concept and staging environments where you want to rebuild the stack quickly. Confirm the current Compose files and supported Docker versions against the deployment options page before you commit, because the files change with each release line.
Docker is a weaker fit when you expect the stack to grow past a single host, when you need the server cluster or a multi-node indexer with separate failure domains, or when your operations team already runs production on Kubernetes or relies on Ansible or Puppet for configuration drift control. In those cases a planned distributed layout is usually the better starting point, because certificates, node roles and network paths are easier to set once than to retrofit. Ask whether your hosting platform supports the host kernel settings the indexer needs before you choose Compose, since those settings sit outside the containers.
How the Wazuh containers and agents connect
The diagram starts at the endpoint agents, which send collected events to the Wazuh server inside the Docker host boundary. The server analyzes the data with decoders and rules and passes alerts to the Wazuh indexer, which stores them on a persistent volume. The dashboard reads from the indexer and is the only component an administrator reaches through a browser. This is a generic layout: confirm the service names, ports and volume mounts against the vendor's Docker files before you write your own Compose file.
Generic component layout for a single-host Wazuh Docker stack, to confirm against vendor files.
Choosing single-node or multi-node Compose stacks
This table compares a single-node Compose stack with a multi-node layout across who uses each, failure domains, certificate handling, upgrade effort and the path toward a distributed or clustered Wazuh design. Read each row as a question to answer for your own environment, and confirm sizing against the Wazuh documentation for your agent count and retention before you choose.
| Decision factor | Single-node Compose stack | Multi-node Compose stack |
|---|---|---|
| Typical users | Evaluation, lab or small pilot with a limited agent count | Production teams that need separate indexer, server and dashboard roles on their own hosts |
| Failure domains | One host holds indexer, server and dashboard, so a host failure stops all components | A failed component host can be isolated, but each added host is another system to patch, monitor and back up |
| Certificate handling | One set of node certificates generated for a single host with the bundled tooling | Certificates generated for each node and distributed to the right container or host, so names and paths must match exactly |
| Host kernel and resource settings | Settings applied once on one host, such as the memory map limit the indexer requires | The same kernel settings applied on every host that runs an indexer node, checked after each rebuild |
| Upgrade effort | One stack to stop, update and verify, with a single rollback point | Ordered upgrades across several services and hosts, with checks between steps |
| Growth path | Moving to a distributed layout usually means rebuilding certificates and redeploying the stack | Adding server workers or indexer nodes is a planned change, since the Wazuh server can run as a cluster for horizontal scaling |
| Sizing check | Confirm that one host covers your agent count and retention, which the vendor documentation sets out | Confirm node counts, storage and memory per role against the vendor documentation for your agent count and retention |
Setting up the Docker stack step by step
This sequence takes a Docker host from bare OS to a running single-node or multi-node Wazuh stack with generated certificates, persistent storage, changed credentials and one enrolled test agent.
Prepare the Docker host and kernel
The host administrator installs a supported Docker Engine and Compose plugin, then raises the kernel setting vm.max_map_count, which the Wazuh indexer needs for its memory map. Apply the value with sysctl, persist it in a file under /etc/sysctl.d, and confirm the host has enough RAM, CPU and disk for the node count you chose. Check that the running value matches the required setting by reading it back with sysctl before going further. Confirm the exact minimum value and host requirements in the vendor deployment documentation for your release, because they change between releases.
Confirm the 4.14 patch level
Before pulling anything, the engineer checks the Wazuh release notes to identify the current 4.14 patch release and decides which tag to use for the indexer, server and dashboard images. Keep all three components on the same version. Record the chosen tag in your change record so later pulls and upgrades use the same reference. The check is complete when the tag is written down and matches the release notes you reviewed on the day of deployment.
Obtain the vendor Compose files
The engineer downloads the Docker deployment files that Wazuh publishes for the chosen 4.14 release, selecting the single-node or multi-node variant that matches the layout you designed. Place the files in a dedicated project directory under version control, and keep the original vendor copy unchanged so local edits are easy to review. Check that the Compose file references the image tags you recorded in the previous step. Compare the file with the vendor copy before you edit anything to confirm the download is intact.
Generate certificates for each node
The engineer runs the certificate generation step supplied with the vendor files, which creates a root certificate authority and node and component certificates for the indexer, server and dashboard. Store the generated files in the project directory with restricted file permissions, and back up the root CA private key to a location outside the Docker host. Verify that each node certificate lists the expected host names or addresses, because mismatches cause the components to fail TLS verification at startup. The step is done when every certificate and key the Compose file references exists and is readable only by the service account.
Configure persistent volumes and credentials
The engineer maps named volumes or host directories for the indexer data, server configuration and dashboard files so that data survives container restarts and image updates. Replace the default passwords for the internal users in the environment configuration before the first start, using long generated values stored in your secrets manager. Confirm the volume paths exist on storage with enough space for your retention plans and that the indexer data directory is owned by the user the container runs as. The check is a listing of the volume mounts and a review confirming no default password remains in any file.
Start the stack and watch startup
The engineer brings the stack up with Docker Compose from the project directory, then follows the container logs for the indexer, server and dashboard until each reports it has started. Startup errors most often trace to the memory map setting, certificate paths or volume permissions, so compare any error against the earlier steps before changing files. Confirm all containers show a running state with no restart loop. The step is complete when the containers stay up through several minutes of logs without repeated restarts.
Verify indexer, server and dashboard health
The engineer checks each component separately: the indexer cluster health endpoint should respond over TLS with the internal credentials, the server API should answer an authenticated request, and the dashboard login page should load over HTTPS with the new admin password. Sign in to the dashboard once to confirm the stored credentials work and that the expected modules appear. Record the health output as evidence. The step is done when all three components pass their checks from the host and from a workstation on the intended network.
Enroll a test agent and confirm alerts
The engineer installs the Wazuh agent on one test endpoint, using the version that matches the server and pointing it at the Docker host address and enrollment port. Confirm the agent appears as active in the dashboard, then generate a harmless event such as a failed local login or a file change in a monitored directory and find the resulting alert in the dashboard. Keep this agent as the reference for later rollout. The step is done when the agent reports active and the test event is visible as an alert in the indexer.
Certificates and persistent volumes that survive restarts
Certificates and persistent volumes decide whether a Wazuh Docker stack comes back intact after a restart, an image update or a host move. Each indexer, server and dashboard node needs its own certificate material, generated once for the stack and then kept, so that the components can authenticate each other. If the certificate generation step runs again on every start, the nodes end up holding certificates that no longer match what the others trust, and the stack stops forming a working cluster. Before you go to production, confirm in the vendor's Docker guide which service generates the certificates, where the output is written and whether the compose file regenerates it on each run.
Three kinds of state must live on persistent volumes rather than inside containers: indexer data, server configuration and agent keys. Indexed alerts and archives sit in the indexer data volume, so losing it means losing searchable history. Server configuration, including custom decoders, rules, and the ossec.conf file, is what makes the manager behave the way your team tuned it. Agent keys, held by the server, identify every enrolled endpoint. If those keys are lost, agents that were enrolled against them must be re-registered, which is a fleet-wide task. Back up each volume on a schedule, and test a restore into a separate stack before you rely on the backup.
Certificate drift and lost volumes fail in different ways. A lost indexer volume often shows as an empty dashboard with no historical alerts, while a lost server configuration volume can silently revert custom rules. Certificate drift usually appears as failed connections between components after a restart or a partial update, which can be hard to diagnose from logs alone. As a planning step, record where the certificates, the volume mounts and the backup jobs are defined, keep the certificate files under change control, and write down the exact recovery order for your team so that a restart does not become a re-installation.
Host settings and credentials to change before production
The Wazuh indexer is a full-text search and analytics engine, and it needs certain Linux kernel settings and memory limits before it will start reliably. These settings live on the Docker host, so they apply to every container on that host and must survive a reboot. Confirm the exact keys and values for your release in the Wazuh deployment options documentation before you change anything.
- Memory map limit: the indexer needs a higher
vm.max_map_countkernel value than many Linux distributions set by default. Read the required value from the vendor guidance for your release. - Persistence: apply the setting with
sysctland store it in a file under/etc/sysctl.dso it is loaded at boot. A runtime-only change disappears after a restart. - Heap and container memory: size the indexer JVM heap and the container memory limit together, and leave headroom for the server and dashboard on the same host.
- Disk and file limits: confirm free space for the named volumes and check the open file limits the containers inherit from the host.
- Verify: read the live kernel value on the host and inside the indexer container, then reboot the host and confirm the stack returns to a healthy state without manual steps.
Check that the indexer reports healthy after a host reboot, not only after a manual change made during the first install.
A Docker-based Wazuh stack ships with default accounts and secrets for its components, and those defaults are widely known to anyone who has read the project documentation. Use the vendor documentation for your release to find the exact account names and the places each password is set, because the list changes between releases. Do not rely on memory or on a previous install to tell you what to change. Replace every default before the dashboard or API can be reached from a user network.
- Inventory every account: list the indexer admin accounts, dashboard users, the server API user and any service account that integrations or automation use.
- Replace before exposure: change each default while the stack is still isolated, so no user can log in with a shipped password during the change window.
- Keep secrets out of files you share: store generated passwords in your secrets manager, not in a compose file committed to Git or in shell history.
- Treat generated certificates and keys as credentials: the certificate generation step produces private keys, so restrict file permissions and back them up under the same controls as passwords.
- Verify: attempt a login with each old default and confirm it fails, then confirm each new credential works and is recorded in your vault.
After the change, restart the stack and confirm every component still authenticates, because a password changed in one file but not in the component that reads it will stop the stack from starting.
The Wazuh dashboard is the web interface that analysts and administrators use to read alerts and manage the platform, so its exposure is a direct access control decision. Decide who should reach it, from which networks, and through which identity path before the stack goes live. Plan these choices together with the credential changes, since an exposed dashboard with a default or shared login is the most direct route into the platform.
- Network exposure: publish the dashboard only on the network segment where administrators work, behind a reverse proxy or load balancer that you operate and log.
- Transport security: serve the dashboard over the certificates you generated for it and confirm that your users' browsers trust the issuing chain.
- Named accounts and roles: create named users with the smallest role each person needs, and disable the default administrator once a named administrator account has been tested. If you plan single sign-on, review the Wazuh single sign-on guide and keep a tested fallback path for administrators.
- Access logging: confirm that logins and administrative actions are recorded and that the logs are sent to storage your security team controls.
- Verify: from a host outside the permitted network, confirm the dashboard does not respond, then sign in as a restricted user and confirm that actions outside that role are denied.
Record the results of these checks in your change record, since reviewers and auditors often ask for evidence of who could reach the dashboard and how that was tested.
Security and operational risks of a Docker deployment
A Docker Compose stack puts the indexer, server, dashboard and their volumes on one host you operate, so the risks sit in the choices you make around it. Each card below names a control your team owns, what happens when it is missing, and what to check before the stack holds production data.
Restrict exposed container ports
The dashboard and the agent enrollment and communication ports are published from containers, and Docker can publish them on every host interface unless the Compose file binds them to specific addresses. Decide which networks may reach the dashboard, which may reach the agent ports, and keep the indexer and internal APIs off any published port. Check the rendered port mappings with docker compose ps and confirm from an outside host that only the intended ports answer.
Replace default credentials
A Docker deployment starts with default accounts for the dashboard, the API and the indexer, and those values are published in documentation and default configuration. Generate new passwords for every account before the stack receives agent traffic, and record who holds each one. Confirm that the change is applied to the indexer security configuration and to the server API user, not only the dashboard login, and test each account after the change.
Protect the Docker host
Every container in the stack shares one Docker host, so compromise of that host exposes the indexer data, the certificates and the server keys at once. Limit who holds shell or Docker socket access, keep the host operating system patched, and log administrative sessions on the host. Treat membership of the docker group as root-equivalent access and review it on a set schedule.
Pin and verify images
Compose files that reference a floating tag such as latest can pull a different image on the next rebuild, which changes the software your detections depend on without a change record. Pin each image to a specific release tag, record the digest your team tested, and pull only from the registry your organization approved. Plan each move to a new patch release as a change with a test pass on a staging stack, because Wazuh ships 4.14 patch releases every one to two months.
Keep secrets out of Compose files
Compose files committed to version control with plaintext passwords or keys expose those secrets to everyone with repository access and to every copy of the history. Move credentials into Docker secrets or an environment file with restricted permissions that is excluded from version control, and confirm the file is not readable by other host users. Scan the repository and its history for passwords before the stack is promoted.
Back up named volumes
Indexed alerts, server state and certificates live in named Docker volumes, and a container rebuild does not restore them. Define a backup procedure for each volume, copy the certificate and key material to a location separate from the host, and test a restore into a clean host at a set interval. Ask your team to document the recovery time they can accept, because a backup that has never been restored is not yet a control.
Questions teams ask before running Wazuh on Docker
What does a Wazuh Docker deployment cost and what drives the effort?
The effort depends mainly on the number of agents, whether the stack is single-node or multi-node, how many environments you run, and how much integration work sits around the core stack. The self-hosted software carries no license fee, so the cost is labor, infrastructure and ongoing operations. Labor covers planning the sizing, building the Compose files and certificates, hardening, testing agent enrollment and handing over runbooks. Infrastructure covers the hosts or cloud instances, storage for indexed alerts and backups. Ask any partner for a quote built from a written scope that lists agent count, node layout, environments, integrations and handover items. Recurring costs include patching, upgrades and retention management, which should be priced separately from the one-time build.
How long does a Wazuh Docker build take?
It depends on scope and environment. A single-node lab on a clean host is far shorter than a multi-node stack with certificate planning, persistent volume design, identity integration and agent rollout across several operating systems. Timing is also set by your change approval process, access to hosts and the time needed to test agent enrollment against real endpoints. Ask for a schedule in the written scope with milestones for planning, build, testing, hardening and handover, and confirm which dependencies sit with your team.
What does our team need to provide before the work starts?
Plan to supply the following before a Docker build begins:
- Hosts or cloud instances that meet the sizing discussed in the scope, with Docker and Docker Compose available and kernel settings your change process allows.
- Storage for persistent volumes and a backup target that your operations team already runs.
- Network paths for agents, the dashboard and any admin access, plus DNS names and certificate policy from your PKI owner.
- A list of endpoints, operating systems and log sources, and the owners who approve agent rollout.
- Identity requirements, such as whether SSO is needed, and named people for credential handover.
Confirm the exact requirements with the vendor's current documentation and your own environment, since they change between releases.
Can our team install Wazuh on Docker without outside help?
Yes, a team with Linux, Docker and certificate experience can deploy a single-node stack by following the vendor documentation. The harder parts are sizing for growth, generating and rotating certificates correctly, changing default credentials before production, securing the exposed ports and proving that backups restore. A partner is most useful when the team lacks that experience, when the deadline is fixed or when the design must pass a compliance or security review. Whichever route you choose, record the design decisions so the operations team can maintain the stack later.
When should we choose Kubernetes or a distributed install instead of Docker?
Choose a distributed install on separate nodes when you need clear fault boundaries for the indexer, server and dashboard, or when agent volume will grow beyond what a single host handles comfortably. Choose Kubernetes when your platform team already runs and operates clusters, storage classes and ingress, and can support StatefulSets and persistent volumes. A Docker Compose stack suits a single host or a small multi-node layout that one team can run without a cluster. The decision should be based on your agent count, availability target, skills and the platform you already operate, so review the deployment options page before committing.
Is Wazuh free to use, and what does Wazuh Cloud cost?
The self-hosted Wazuh software is distributed under the GNU General Public License version 2, with an exception that permits linking with OpenSSL, and it carries no license fee. Your costs are the infrastructure and the people who run it. Wazuh Cloud is a separate, vendor-managed XDR and SIEM service with its own plans in Small, Medium, Large and Custom tiers, and it is not required to run the self-hosted stack. Read the license text and the Wazuh Cloud page before you decide, and ask your legal team to confirm how the license applies to your use. Any paid support or training is also a separate purchase.
How does DeployOpen scope a Wazuh Docker engagement in writing?
DeployOpen works from a fixed scope agreed in writing before work starts. The scope usually states the environments, node layout, agent count and operating systems, the certificate and credential approach, the identity and integration items in or out of scope, the backup and restore test, and the handover documents. It also lists your responsibilities, such as host access and approvals, and the acceptance tests that close each milestone. Changes after signing go through a written change request with a revised quote. DeployOpen does not publish a price list, so the quote follows from that written scope. Ongoing support and upgrades are available as a retainer.
How DeployOpen scopes and delivers a Wazuh Docker deployment
DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, including the Docker host, network segments and storage you already run. For a Wazuh Docker deployment, the work is agreed in writing before it starts: which topology applies (single-node or multi-node), which hosts and container runtime carry the stack, how the host kernel settings and certificate generation are handled, where the persistent volumes live, how default credentials are replaced, which agent enrollment paths and dashboard access model are in scope, and what acceptance tests prove the stack works. Most engagements are fixed-scope, so deliverables and timelines follow from that written scope and the quote follows from it as well. DeployOpen does not publish a price list.
Delivery produces more than a running stack. The handover documentation should cover the Compose files and their version control, the environment values and where secrets are kept, the certificate inventory and renewal steps, the volume and backup locations, the credential rotation record, the list of exposed ports and the steps for adding an agent or a node. Ask for this documentation explicitly in the scope, and ask the vendor which Wazuh release line and image tags the stack is pinned to, so your team can confirm them against the Wazuh release notes before you accept the build. Where your security or compliance teams need evidence of configuration, the scope should name the artifacts they will receive.
Operating the stack after handover is a separate decision. Wazuh patch releases arrive regularly, so a retainer for upgrades, monitoring of the stack and periodic configuration review is available as an ongoing arrangement, and it can be scoped alongside the initial build or added later. DeployOpen does not issue audit reports, attestations or certifications. If an assessor needs evidence from this environment, DeployOpen prepares the systems, controls and records for their review, and the independent auditor or certification body makes the determination.

