This project sets up a multi-node Cassandra cluster using Docker Compose. The configuration includes three Cassandra nodes with a centralized logging setup using Loki.
- Docker
- Docker Compose
Dockerfile
: Dockerfile for the Cassandra nodes.docker-compose.yml
: Docker Compose file defining the services and their configurations..env
: Environment variables for the Cassandra nodes.
Clone the repository:
# Build the Docker images
docker build -t cassandra-awscli .
# Start the first node as a seed node
docker compose up -d cassandra-node1
# Wait for the first node to start, this is necessary to avoid issues with the remaining nodes, other nodes need to connect to the seed node
# Note: The first node may take a few minutes to start
docker compose logs -f cassandra-node1
# Start the remaining nodes
docker compose up -d cassandra-node2 cassandra-node3
https://docs.datastax.com/en/cassandra-oss/3.x/cassandra/dml/dmlConfigConsistency.html