This repository contains a Docker Compose file, along with other necessary resources, to set up a production-ready standalone ClickHouse instance. It also includes a monitoring stack composed of Prometheus and Grafana for real-time performance tracking. Additionally, MinIO is incorporated for efficient backup of ClickHouse data. This comprehensive setup ensures a robust and reliable data management environment.
- Installing the Prerequisites 🐳: The sole prerequisites for this project are Docker and Docker Compose. Please ensure that both are installed on your host machine prior to proceeding.
- Setting Environment Variables 🔐: Create a copy from
.env.sample
with.env
name on the root directory (usingcp .env.sample .env
command) and replace the placeholder (marked by<placeholder>
) with the desired value. - Running the Script 🔧: Execute the
script.sh
command. If it lacks execution permissions, grant them by running thechmod +x script.sh
command. - Add Grafana Montitoring Plugin for Clickhouse 📈:
Install the Altinity Plugin or you can manually download it in the page and place it in
config_files/grafana/plugins/
directory. - Run
docker compose up -d
command. - Enjoy!
We welcome contributions to this repository! If you’re interested in contributing, please take a look at our CONTIRIBUTION.md file for more information on how to get started. We look forward to collaborating with you!
This repository is licensed under the MIT License, which is a permissive open-source license that allows for reuse and modification of the code with few restrictions. You can find the full text of the license in this file.