forked from wazuh/wazuh-docker
update wazuh config, Readme and docker-compose file
This commit is contained in:
@@ -159,11 +159,36 @@ URL: http://wazuh
|
|||||||
Port: 55000
|
Port: 55000
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you like to change the default API configuration, you need to modify the file ``user`` in the path ``/var/ossec/api/configuration/auth/user``, you can generate other password with any ``htpasswd`` generator.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
# Storage
|
# Storage
|
||||||
|
|
||||||
|
## How can I store Wazuh data?
|
||||||
|
|
||||||
|
The data stored in Wazuh will be persisted after container reboot but not after container removal.
|
||||||
|
|
||||||
|
In order to persist Wazuh data even after removing the Wazuh container, you'll have to mount a volume on your Docker host. Update the Wazuh container declaration to:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
elasticsearch:
|
||||||
|
image: wazuh/wazuh:latest
|
||||||
|
hostname: wazuh-manager
|
||||||
|
ports:
|
||||||
|
- "1514:1514"
|
||||||
|
- "1515:1515"
|
||||||
|
- "514:514"
|
||||||
|
- "55000:55000"
|
||||||
|
networks:
|
||||||
|
- docker_elk
|
||||||
|
volumes:
|
||||||
|
- /path/to/storage:/var/ossec/data
|
||||||
|
```
|
||||||
|
|
||||||
|
This will store Wazuh data inside `/path/to/storage`.
|
||||||
|
|
||||||
## How can I store Elasticsearch data?
|
## How can I store Elasticsearch data?
|
||||||
|
|
||||||
The data stored in Elasticsearch will be persisted after container reboot but not after container removal.
|
The data stored in Elasticsearch will be persisted after container reboot but not after container removal.
|
||||||
@@ -421,4 +446,3 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Deleted link to LUA sources.
|
- Deleted link to LUA sources.
|
||||||
- Delete ZLib generated files on cleaning.
|
- Delete ZLib generated files on cleaning.
|
||||||
- Removed maximum lines limit from diff messages (that remain limited by length).
|
- Removed maximum lines limit from diff messages (that remain limited by length).
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -8,10 +8,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "1514/udp:1514/udp"
|
- "1514/udp:1514/udp"
|
||||||
- "1515:1515"
|
- "1515:1515"
|
||||||
# - "514/udp:514/udp"
|
- "514/udp:514/udp"
|
||||||
- "55000:55000"
|
- "55000:55000"
|
||||||
networks:
|
networks:
|
||||||
- docker_elk
|
- docker_elk
|
||||||
|
volumes:
|
||||||
|
- my-path:/var/ossec/data
|
||||||
depends_on:
|
depends_on:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
logstash:
|
logstash:
|
||||||
@@ -39,6 +41,8 @@ services:
|
|||||||
- "9300:9300"
|
- "9300:9300"
|
||||||
environment:
|
environment:
|
||||||
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
|
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
|
||||||
|
volumes:
|
||||||
|
- my-path:/var/ossec/data
|
||||||
networks:
|
networks:
|
||||||
- docker_elk
|
- docker_elk
|
||||||
kibana:
|
kibana:
|
||||||
|
|||||||
@@ -5,4 +5,5 @@ DATA_DIRS[((i++))]="logs"
|
|||||||
DATA_DIRS[((i++))]="stats"
|
DATA_DIRS[((i++))]="stats"
|
||||||
DATA_DIRS[((i++))]="queue"
|
DATA_DIRS[((i++))]="queue"
|
||||||
DATA_DIRS[((i++))]="var/db"
|
DATA_DIRS[((i++))]="var/db"
|
||||||
|
DATA_DIRS[((i++))]="api"
|
||||||
export DATA_DIRS
|
export DATA_DIRS
|
||||||
|
|||||||
Reference in New Issue
Block a user