forked from wazuh/wazuh-docker
Change deploy process
This commit is contained in:
@@ -1,24 +1,36 @@
|
||||
# Wazuh Docker deployment
|
||||
# Wazuh Docker Deployment
|
||||
|
||||
## Deploy Wazuh agent
|
||||
## Deploying the Wazuh Agent
|
||||
|
||||
1) Enter the `wazuh-agent` directory of the repository.
|
||||
```
|
||||
$ cd wazuh-agent
|
||||
```
|
||||
2) Edit the `docker-compose.yml` file, changing the current value of the `WAZUH_MANAGER_SERVER` variable to the IP or URL of the Wazuh manager:
|
||||
```
|
||||
Follow these steps to deploy the Wazuh agent using Docker.
|
||||
|
||||
1. Navigate to the `wazuh-agent` directory within your repository:
|
||||
```bash
|
||||
cd wazuh-agent
|
||||
```
|
||||
|
||||
2. Edit the `docker-compose.yml` file. You need to update the `WAZUH_MANAGER_SERVER` environment variable with the IP address or hostname of your Wazuh manager.
|
||||
|
||||
Locate the `environment` section for the agent service and update it as follows:
|
||||
```yaml
|
||||
# Inside your docker-compose.yml file
|
||||
# services:
|
||||
# wazuh-agent:
|
||||
# ...
|
||||
environment:
|
||||
- WAZUH_MANAGER_SERVER=<WAZUH_MANAGER_IP>
|
||||
```
|
||||
3) Start the environment with docker-compose:
|
||||
- WAZUH_MANAGER_SERVER=<YOUR_WAZUH_MANAGER_IP_OR_HOSTNAME>
|
||||
# ...
|
||||
```
|
||||
**Note:** Replace `<YOUR_WAZUH_MANAGER_IP_OR_HOSTNAME>` with the actual IP address or hostname of your Wazuh manager.
|
||||
|
||||
- In the foregroud:
|
||||
```
|
||||
$ docker-compose up
|
||||
```
|
||||
3. Start the environment using `docker-compose`:
|
||||
|
||||
- In the background:
|
||||
```
|
||||
$ docker-compose up -d
|
||||
```
|
||||
* To run in the foreground (logs will be displayed in your current terminal, and you can stop it with `Ctrl+C`):
|
||||
```bash
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
* To run in the background (detached mode, allowing the container to run independently of your terminal):
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
Reference in New Issue
Block a user