Hello
For the execution of the wazuh/wazuh-manager image, in the case of wanting to mount a directory to maintain persistence, you should mount a Docker volume, as in the other directories that persist in the deployment:
- worker-wazuh-api-configuration:/var/ossec/api/configuration
You will have to declare that volume with all the volumes you have at the end of docker-compose.yml
About mounting a file, inside the entrypoint there is a function that copies everything you mount inside the /wazuh-config-mount/ directory to the /var/ossec/ directory, so as not to generate file permission problems when mounting, an example This is the mounting of the ossec.conf file:
- /home/ubuntu20/ts-docker-01-git/stack-wazuh-01/config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
In the case of the ar.conf file, line 40 could look like this:
- /home/ubuntu20/ts-docker-01-git/stack-wazuh-01/config/wazuh_cluster/ar.conf:/wazuh-config-mount/etc/shared/ar.conf