Skip to content

thedataflows/wazuh-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wazuh deployment with Docker Compose

This repo will automate the deployment of a single-node Wazuh instance with Docker or Containerd using docker-compose or nerdctl respectively.

Prerequisites

  • mikefarah/yq
  • go-task
  • Optional: mise-en-place
    • ./mise.run to download and install mise in the user directory
    • mise up will install locally the tools specified in the mise.toml file
  • docker with docker-compose or containerd with nerdctl (with docker symlinked to it), recommended in rootlesskit mode

Environment

Create an .env file in the project root containing the following (the passwords are a sample):

INDEXER_PASSWORD=IndexerPass
API_PASSWORD=MustBeALongerPassword123#
DASHBOARD_PASSWORD=DashboardPass

Optionally, you can set the following variables:

## WAZUH_MANAGER_PORTS is an array of localport:containerport, comma separated
WAZUH_MANAGER_PORTS=["11514:1514","11515:1515","11514:514/udp","55000:55000"]
## WAZUH_DASHBOARD_PORTS is an array of localport:containerport, comma separated
WAZUH_DASHBOARD_PORTS=["11443:5601"]

Run

  • List all tasks: task
  • If you have set different passwords than the default ones, you must run:
    • task wazuh:change_passwords - will stop and start the Wazuh containers
    • Wait for the indexer to become ready
    • task wazuh:post_change_passwords
  • Deploy Wazuh (re-create the containers): task wazuh:up
  • Destroy Wazuh (but keep the volumes): task wazuh:down
  • Start Wazuh: task wazuh:start
  • Stop Wazuh: task wazuh:stop
  • Watch logs: task wazuh:logs

About

Wazuh with Docker Compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages