Hello,
If you are using the new wazuh-docker (https://github.com/wazuh/wazuh-docker), you can use a persistent volume; in your docker-compose.yml file, uncomment the volume section in the wazuh container, and set your path under my-path option, with this option you will have wazuh-manager and wazuh-api configuration in a persistent volume and your changes will not overwritten.
[root@localhost ~]# tree
.
├── docker-compose.yml
└── wazuh
├── api
│ ├── app.js
│ ├── configuration
│ │ ├── auth
│ │ │ ├── htpasswd -> /var/ossec/api/node_modules/htpasswd/bin/htpasswd
│ │ │ └── user
│ │ ├── config.js
│ │ └── ssl
version: '2'
services:
wazuh:
image: wazuh/wazuh
hostname: wazuh-manager
restart: always
ports:
- "1514/udp:1514/udp"
- "1515:1515"
- "514/udp:514/udp"
- "55000:55000"
networks:
- docker_elk
volumes:
- my-path:/var/ossec/data
depends_on:
- elasticsearch
logstash:
image: wazuh/wazuh-logstash
hostname: logstash
restart: always
command: -f /etc/logstash/conf.d/
# volumes:
# - my-path:/etc/logstash/conf.d
links:
- kibana
- elasticsearch
ports:
- "5000:5000"
networks:
- docker_elk
depends_on:
- elasticsearch
environment:
- LS_HEAP_SIZE=2048m
elasticsearch:
image: elasticsearch:5.2.2
hostname: elasticsearch
restart: always
command: elasticsearch -E node.name="node-1" -E cluster.name="wazuh" -E network.host=0.0.0.0
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
# volumes:
# - my-path:/usr/share/elasticsearch/data
networks:
- docker_elk
kibana:
image: wazuh/wazuh-kibana
hostname: kibana
restart: always
ports:
- "5601:5601"
networks:
- docker_elk
depends_on:
- elasticsearch
entrypoint: sh wait-for-it.sh elasticsearch
networks:
docker_elk:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/24
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5831e961-e3b9-40d6-9e7d-4ab10ef8c5c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.