Are you tired of manually configuring docker-compose.yml files for Elasticsearch clusters? Say hello to this easy-to-use Python script that automates the process! ๐Ÿ

๐Ÿ“Œ What it does:

This script generates a docker-compose.yml file for setting up an ElasticSearch cluster using template files and environment variables. It creates a cluster with Docker containers, including:

  • ElasticSearch nodes with different roles (master, data, ingest, coordinator)
  • Kibana for visualization
  • Additional service containers

๐Ÿ”ง How it works:

  • Configure your cluster setup using a .env file.
  • Run the script, and voilร ! Your docker-compose.yml is ready.

๐Ÿ“ถ Test Environment:

The generated cluster was tested on a TrueNAS SCALE 24.10.2 server, deployed as a custom application by importing the YAML file. Storage was configured using ZFS Datasets, ensuring reliability and scalability.

๐Ÿ’ก Why itโ€™s awesome:

  • Saves time and reduces errors in manual configuration.
  • Flexible and customizable for different cluster setups.
  • Perfect for DevOps engineers and developers working with ElasticSearch.

๐Ÿ”— Script: https://github.com/lexxai/es_cluster_docker_helper๐Ÿ”— Prototype: https://github.com/evermight/elastic-cluster-docker-compose