Comments (2)
Hi @xdaass.
I have reproduced your issue. Registering agents and setting the user/password for accessing Kibana make changes in paths declared as volumes in the Dockerfiles, therefore those changes won't get saved in a custom image. Registering an agent will alter /var/ossec/data and setting a password for accessing Kibana will alter /etc/nginx/conf.d.
For preserving the agents that are registered while the wazuh container is up a directory in the host can be specified in the docker-compose.yml file. For example:
services:
wazuh:
image: wazuh/wazuh:3.7.2_6.5.4
hostname: wazuh-manager
restart: always
ports:
- "1514:1514/udp"
- "1515:1515"
- "514:514/udp"
- "55000:55000"
# - "1516:1516"
networks:
- docker_elk
volumes:
- /home/user/ossec-data:/var/ossec/data:Z
Will save the changes to /var/ossec/data in the Wazuh docker container at the /home/user/ossec-data directory on the host.
A similar approach can be followed for setting the user/password for accessing Kibana.
...
links:
- elasticsearch:elasticsearch
- wazuh:wazuh
nginx:
image: wazuh/wazuh-nginx:3.7.2_6.5.4
hostname: nginx
restart: always
environment:
- NGINX_PORT=443
- NGINX_NAME=newuser
- NGINX_PWD=newpassword
ports:
- "80:80"
- "443:443"
volumes:
- /home/user/nginx-confd:/etc/nginx/conf.d:Z
....
It is also possible to specify the user and password using environment variables as the code block above.
Hope the issue has been clarified a bit.
Regards.
from wazuh-docker.
Hello @xdaass,
Did this work for you? I will proceed to close this issue, do not hesitate to open a new one if you need it.
Cheers
from wazuh-docker.
Related Issues (20)
- After following procedure - admin password not changed HOT 2
- Support new stage RC 1 for 4.7.4 in wazuh-docker repository HOT 1
- Change Wazuh passwords processes HOT 1
- Wazuh deployment update
- Support new stage RC 2 for 4.7.4 in wazuh-docker repository HOT 1
- A Whole bunch of errors after signing in. HOT 5
- Generate final tag and publish draft release for Wazuh 4.7.4
- Post release tasks for 4.7.4
- Can't use netflow module HOT 1
- wazuh docker deployment issues HOT 1
- Support new stage RC 1 for 4.8.0 in wazuh-docker repository HOT 1
- Error in config file wazuh-agent in /var/ossec/etc/ossec.conf
- Error deploying "driver failed programming external connectivity on endpoint" HOT 1
- How to remove agent with Wazuh Docker Single-node deployment using CLI? HOT 2
- Authentication finally failed HOT 6
- Wazuh did not load properly. Check the server output for more information. HOT 2
- Support new stage RC 2 for 4.8.0 in wazuh-docker repository
- Support new Wazuh version 4.7.5 in wazuh-docker repository
- Enable additional Wazuh modules via Dashboard environment variables
- PSA: Do not use & in admin password with docker HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wazuh-docker.