forked from wazuh/wazuh-docker
Add persistence in single node
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Wazuh Docker Image Builder
|
||||
|
||||
By executing this stack, the Docker images of Wazuh manager, indexer and dashboard are created.
|
||||
This process can be used in case of any problem accessing the Docker images that are hosted on Docker Hub.
|
||||
|
||||
To execute this process, the following command must be executed:
|
||||
|
||||
```
|
||||
$ docker-compose up -d --build
|
||||
```
|
||||
|
||||
Once the image creation process is finished, a Wazuh test stack will also be executed, which must be terminated with the following command:
|
||||
|
||||
```
|
||||
$ docker-compose down
|
||||
```
|
||||
@@ -0,0 +1,9 @@
|
||||
# Certificate creation image build
|
||||
|
||||
The dockerfile hosted in this directory is used to build the image used to boot Wazuh's single node and multi node stacks.
|
||||
|
||||
To create the image, the following command must be executed:
|
||||
|
||||
```
|
||||
$ docker build -t wazuh/wazuh-certs-generator:0.0.1 .
|
||||
```
|
||||
@@ -0,0 +1,31 @@
|
||||
# Deploy Wazuh Docker in multi node configuration
|
||||
|
||||
This deployment generates a Docker Compose stack with 2 Wazuh Manager container, 3 Wazuh Indexer container and 1 Wazuh Dashboard container.
|
||||
|
||||
For the next deployment, the following steps must be performed:
|
||||
|
||||
1) Increase max_map_count on your host (Linux)
|
||||
```
|
||||
$ sysctl -w vm.max_map_count=262144
|
||||
```
|
||||
This command must be run with root permissions
|
||||
|
||||
|
||||
2) Run the certificate creation script:
|
||||
```
|
||||
$ docker-compose -f generate-indexer-certs.yml run --rm generator
|
||||
```
|
||||
3) Start the stack with docker-compose:
|
||||
|
||||
In Foregroud:
|
||||
```
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
In Background:
|
||||
```
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
|
||||
The stack takes about 1 minute to get up for the first time, since Wazuh Indexer must be started for the first time and the Indexes and Index Patterns must be generated.
|
||||
@@ -10,7 +10,8 @@ For the next deployment, the following steps must be performed:
|
||||
```
|
||||
$ sysctl -w vm.max_map_count=262144
|
||||
```
|
||||
This command must be run with root permissions
|
||||
This command must be run with root permissions
|
||||
|
||||
|
||||
2) Run the certificate creation script:
|
||||
```
|
||||
@@ -18,14 +19,15 @@ $ docker-compose -f generate-indexer-certs.yml run --rm generator
|
||||
```
|
||||
3) Start the stack with docker-compose:
|
||||
|
||||
In Foregroud:
|
||||
In Foregroud:
|
||||
```
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
Background:
|
||||
In Background:
|
||||
```
|
||||
$ docker-compose up -d
|
||||
```
|
||||
|
||||
|
||||
The stack takes about 1 minute to get up for the first time, since Wazuh Indexer must be started for the first time and the Indexes and Index Patterns must be generated.
|
||||
Reference in New Issue
Block a user