Add build and deploy doc

This commit is contained in:
vcerenu
2025-05-14 14:04:44 -03:00
parent ce480d5c75
commit 3a69f6aabc
9 changed files with 123 additions and 7 deletions

View File

@@ -0,0 +1,32 @@
# Wazuh Docker deployment
## Deploy Wazuh Docker in multi node configuration
This deployment is defined in the `multi-node/docker-compose.yml` file with two Wazuh manager containers, three Wazuh indexer containers, and one Wazuh dashboard container. It can be deployed by following these steps:
1) Enter the multi-node directory of the repository:
```
$ cd multi-node
```
2) Increase max_map_count on your host (Linux). This command must be run with root permissions:
```
$ sysctl -w vm.max_map_count=262144
```
3) Run the certificate creation script:
```
$ docker-compose -f generate-indexer-certs.yml run --rm generator
```
4) Start the environment with docker-compose:
- In the foregroud:
```
$ docker-compose up
```
- In the background:
```
$ docker-compose up -d
```
The environment takes about 1 minute to get up (depending on your Docker host) for the first time since Wazuh Indexer must be started for the first time and the indexes and index patterns must be generated.

View File

@@ -0,0 +1,31 @@
# Wazuh Docker deployment
## Deploy Wazuh Docker in single node configuration
This deployment is defined in the `single-node/docker-compose.yml` file with one Wazuh manager containers, one Wazuh indexer containers, and one Wazuh dashboard container. It can be deployed by following these steps:
1) Enter the single-node directory of the repository:
```
$ cd single-node
```
2) Increase max_map_count on your host (Linux). This command must be run with root permissions:
```
$ sysctl -w vm.max_map_count=262144
```
3) Run the certificate creation script:
```
$ docker-compose -f generate-indexer-certs.yml run --rm generator
```
4) Start the environment with docker-compose:
- In the foregroud:
```
$ docker-compose up
```
- In the background:
```
$ docker-compose up -d
```
The environment takes about 1 minute to get up (depending on your Docker host) for the first time since Wazuh Indexer must be started for the first time and the indexes and index patterns must be generated.

View File

@@ -0,0 +1,24 @@
# Wazuh Docker deployment
## Deploy 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:
```
environment:
- WAZUH_MANAGER_SERVER=<WAZUH_MANAGER_IP>
```
3) Start the environment with docker-compose:
- In the foregroud:
```
$ docker-compose up
```
- In the background:
```
$ docker-compose up -d
```

View File

@@ -1 +0,0 @@
# Installation