wazuh / wazuh-docker

Wazuh - Docker containers
https://wazuh.com
Other
678 stars 392 forks source link

wazuh docker deployment issues #1328

Closed omar-timo08 closed 4 months ago

omar-timo08 commented 5 months ago

Hello all! i have a probleme in my wazuh docker-compose.yml i started by the documentation wazuh https://documentation.wazuh.com/current/deployment-options/docker/wazuh-container.html wazuh docker deployement single-node it works correctly but i want to mount the files in /data/wazuh and don't use /config and also i copied the /config files in /data/wazuh/config and the wazuh_indexer_ssl_certificate in my /data/wazuh/wazuh_indexer_ssl_certificate this my docker-compose looks like , but after docker-compose up the dasboard refuse connected to indexer , otherwise when i work with single-node in github it works what i can do ? a b c d e f

vcerenu commented 4 months ago

Hello @omar-timo08

I see that at the beginning of the cluster you have some orphan containers, I ask you if you can stop all the related containers before starting and clean the directories where they are saving the data. Normally we use Docker volumes instead of bind mounts because they are more versatile for the tasks that containers perform, check if it is possible to use these, you can mount your fs on the directory in which Docker creates the volumes. After that, start the cluster with docker-compose up -d and I ask you if you can send me the result of the docker logs command for the Wazuh indexer container that you are deploying.