The Installation of Wazuh on Docker
You can deploy Wazuh as either a single-node or multi-node stack:
Single Node Deployment: Installs one Wazuh manager, indexer, and dashboard node.
Multi-Node Deployment: Installs two Wazuh manager nodes, three Wazuh indexer nodes, and one Wazuh dashboard.
Both deployment types provide persistence and enable certificate configuration to secure communication between nodes. High availability is only available in multi-node deployments.
Single Node Deployment
Clone the Wazuh repository onto your system:
Then navigate to the
single-node
directory to execute the commands described below.Generate certificates for secure communication between nodes. You have two options:
Generate certificates with the following command:
Provide your own certificates by placing them in the following directory:
config/wazuh_indexer_ssl_certs
Wazuh Indexer:
Wazuh Manager:
Wazuh Dashboard:
Start the Wazuh single-node deployment using Docker Compose:
To run in the foreground:
To run in detached mode:
The default Wazuh dashboard credentials are:
Username:
admin
Password:
SecretPassword
You can change the default password for the Wazuh indexer admin user for additional security.
While the Wazuh indexer starts, the Wazuh dashboard container may make multiple requests to the Wazuh indexer API using curl
. During this time, you might encounter error messages such as:
"Failed to connect to Wazuh indexer port 9200"
"Wazuh dashboard server is not ready yet"
These messages will resolve once the Wazuh indexer is up and running, which usually takes about 1 minute.
You can find the default Wazuh indexer credentials in the docker-compose.yml
file.
Multi-Node Deployment
Clone the Wazuh repository onto your system:
Generate certificates for secure communication between nodes. You have two options:
Generate certificates with the following command:
Provide your own certificates: Wazuh Indexer:
Wazuh Manager:
Wazuh Dashboard:
Start the Wazuh multi-node deployment using Docker Compose:
To run in the foreground:
To run in detached mode:
References
Last updated