1.4 KiB
Wazuh Docker Deployment
Deploying the Wazuh Agent
Follow these steps to deploy the Wazuh agent using Docker.
-
Navigate to the
wazuh-agentdirectory within your repository:cd wazuh-agent -
Edit the
docker-compose.ymlfile. You need to update theWAZUH_MANAGER_SERVERenvironment variable with the IP address or hostname of your Wazuh manager.Locate the
environmentsection for the agent service and update it as follows:# Inside your docker-compose.yml file # services: # wazuh-agent: # ... environment: - WAZUH_MANAGER_SERVER=<YOUR_WAZUH_MANAGER_IP_OR_HOSTNAME> - WAZUH_REGISTRATION_PASSWORD=<authd.pass-PASSWORD> # ...Note: Replaces
<YOUR_WAZUH_MANAGER_IP_OR_HOSTNAME>with the actual IP address or hostname of your Wazuh manager. Note: Replaces<authd.pass-PASSWORD>with the password configured in the/var/wazuh-manager/etc/authd.passfile of the Wazuh manager server where you will connect. -
Start the environment using
docker compose:-
To run in the foreground (logs will be displayed in your current terminal, and you can stop it with
Ctrl+C):docker compose up -
To run in the background (detached mode, allowing the container to run independently of your terminal):
docker compose up -d
-