WAZUH HA Install and deployment High Availability on Ubuntu Server using docker swarm, lazydocker..
FriendInfo FriendInfo
496 subscribers
4 views
0

 Published On Oct 6, 2024

Welcome to Elite Pulse | نبض النخبة, your go-to channel for high-quality content that stimulates the mind and sparks engaging discussions. We cover a range of topics from current events, politics, culture, and social issues, providing insightful analysis and thought-provoking debates. If you're looking to stay informed and dive deep into the latest trends and important topics, be sure to subscribe and never miss out on exciting updates!

In this video, we'll cover the complete setup process for Docker CE, Docker Swarm, Portainer, LazyDocker, Cockpit, and Wazuh in a high-availability mode (HA). All the commands shown are tested and work seamlessly for a professional-grade deployment. Follow the steps carefully, and feel free to pause the video as needed to complete your setup.

Step 1: Install Docker CE on All Nodes

sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
sudo curl -fsSL https://download.docker.com/linux/ubu... | sudo gpg --dearmour -o /etc/apt/trusted.gpg.d/docker.gpg
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce -y
sudo usermod -aG docker ${USER}
newgrp docker
sudo systemctl status docker
sudo systemctl enable docker

Step 2: Activate Docker Swarm Cluster

sudo docker swarm init --advertise-addr 10.x.x.x
sudo docker swarm join --token #swarm_token# 10.x.x.x:2377

Step 3: Install Portainer

docker pull portainer/portainer-ce:latest
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer-ce:latest

Visit http://server-ip:9000 to access Portainer's interface.

Step 4: Install LazyDocker

LAZYDOCKER_VERSION=$(curl -s "https://api.github.com/repos/jesseduf..." | grep -Po '"tag_name": "v\K[0-9.]+')
curl -Lo lazydocker.tar.gz "https://github.com/jesseduffield/lazy...{LAZYDOCKER_VERSION}_Linux_x86_64.tar.gz"
mkdir lazydocker-temp
tar xf lazydocker.tar.gz -C lazydocker-temp
sudo mv lazydocker-temp/lazydocker /usr/local/bin
rm -rf lazydocker.tar.gz lazydocker-temp
lazydocker

Step 5: Install Cockpit and Podman

sudo apt-get install cockpit -y
sudo systemctl enable --now cockpit.socket
sudo apt-get install podman cockpit-podman -y
sudo systemctl enable --now podman

Access Cockpit at https://SERVER:9090.

Step 6: Install Wazuh in HA Mode via Docker Swarm :

git clone https://github.com/wazuh/wazuh-docker... -b v4.2.5 --depth=1
cd wazuh-docker/
docker stack deploy -c docker-compose.yml Wazuh
sudo docker compose up --build -d

Final Step: Scale Wazuh Services :
docker service scale Wazuh_elasticsearch=1
docker service scale Wazuh_kibana=1
docker service scale Wazuh_wazuh=1

///but in our situation we are not going to use it ,
///
///that's all wazuh mode HA working well now, so thanks for whatching , don't forgot to subscribe my ch
annel and doing like to this video with share it with your friends :) .
///see you in another video
/// thanks by elite pulse //// abdechakour.hr

That's it! Wazuh HA mode is now set up and running smoothly. If this video helped you, please like, share, and subscribe to Elite Pulse | نبض النخبة for more tech tutorials and content. See you in the next video!

#Docker #Wazuh #ElitePulse #DockerSwarm #Portainer #LazyDocker #Cockpit #HighAvailability

Stay connected with me:

Instagram: @abdechakour.hr
Linkedin:   / abdechakour-h-4b8425218  
Website: abdechakour.lovestoblog.com

MY Services :
1) create pro resume CV and Letter of Motivavtion , with correction & translation :
Website: proresume.kesug.com
2) Development & design any type of website , store, blog, vitrine, portfolio, CV, .... :
Website: ozounorepcom.kesug.com

show more

Share/Embed