mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 13:33:15 +00:00
Add build and deploy doc
This commit is contained in:
0
docs/ref/getting-started/deployment/README.md
Normal file
0
docs/ref/getting-started/deployment/README.md
Normal file
32
docs/ref/getting-started/deployment/multi-node.md
Normal file
32
docs/ref/getting-started/deployment/multi-node.md
Normal 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.
|
||||
31
docs/ref/getting-started/deployment/single-node.md
Normal file
31
docs/ref/getting-started/deployment/single-node.md
Normal 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.
|
||||
|
||||
24
docs/ref/getting-started/deployment/wazuh-agent.md
Normal file
24
docs/ref/getting-started/deployment/wazuh-agent.md
Normal 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
|
||||
```
|
||||
@@ -1 +0,0 @@
|
||||
# Installation
|
||||
Reference in New Issue
Block a user