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