mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
1.9 KiB
1.9 KiB
Reference Manual - Configuration
This section details how to configure your Wazuh-Docker deployment (version 4.12.2). Proper configuration is key to tailoring the Wazuh stack to your specific needs, managing data persistence, and integrating with your environment.
Overview of Configuration Methods
Configuring Wazuh components within a Docker environment typically involves several methods:
-
- Many container settings are controlled by passing environment variables at runtime (e.g., via the
docker-compose.yml
file ordocker run
commands). - These are often used for setting up initial passwords, component versions, cluster names, or basic operational parameters.
- Many container settings are controlled by passing environment variables at runtime (e.g., via the
-
- Core Wazuh components (manager, indexer, dashboard) rely on their traditional configuration files (e.g.,
ossec.conf
,opensearch.yml
,opensearch_dashboards.yml
). - To customize these, you typically mount your custom configuration files into the containers, replacing or supplementing the defaults. This is managed using Docker volumes in your
docker-compose.yml
.
- Core Wazuh components (manager, indexer, dashboard) rely on their traditional configuration files (e.g.,
-
Docker Compose File (
docker-compose.yml
):- The
docker-compose.yml
file itself is a primary configuration tool. It defines:- Which services (containers) to run.
- The Docker images to use.
- Port mappings.
- Volume mounts for persistent data and custom configurations.
- Network configurations.
- Resource limits (CPU, memory).
- Dependencies between services.
- The
-
Persistent Data Volumes:
- Configuration related to data storage (e.g., paths for Wazuh Indexer data, Wazuh manager logs and agent keys) is managed through Docker volumes. Persisting these volumes ensures your data and critical configurations survive container restarts or recreations.