mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-12-10 15:25:53 -06:00
update wazuh config, Readme and docker-compose file
This commit is contained in:
parent
76d8533e20
commit
146d37629b
26
README.md
26
README.md
@ -159,11 +159,36 @@ URL: http://wazuh
|
||||
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
|
||||
|
||||
## 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?
|
||||
|
||||
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.
|
||||
- Delete ZLib generated files on cleaning.
|
||||
- Removed maximum lines limit from diff messages (that remain limited by length).
|
||||
|
||||
|
||||
@ -8,10 +8,12 @@ services:
|
||||
ports:
|
||||
- "1514/udp:1514/udp"
|
||||
- "1515:1515"
|
||||
# - "514/udp:514/udp"
|
||||
- "514/udp:514/udp"
|
||||
- "55000:55000"
|
||||
networks:
|
||||
- docker_elk
|
||||
volumes:
|
||||
- my-path:/var/ossec/data
|
||||
depends_on:
|
||||
- elasticsearch
|
||||
logstash:
|
||||
@ -39,6 +41,8 @@ services:
|
||||
- "9300:9300"
|
||||
environment:
|
||||
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
|
||||
volumes:
|
||||
- my-path:/var/ossec/data
|
||||
networks:
|
||||
- docker_elk
|
||||
kibana:
|
||||
|
||||
@ -5,4 +5,5 @@ DATA_DIRS[((i++))]="logs"
|
||||
DATA_DIRS[((i++))]="stats"
|
||||
DATA_DIRS[((i++))]="queue"
|
||||
DATA_DIRS[((i++))]="var/db"
|
||||
DATA_DIRS[((i++))]="api"
|
||||
export DATA_DIRS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user