Skip to content

Instantly share code, notes, and snippets.

View momaek's full-sized avatar
😍
O Very Good

wentx momaek

😍
O Very Good
View GitHub Profile
@momaek
momaek / redis-cluster.sh
Last active December 9, 2024 09:39
redis-cluster docker
#!/bin/bash
container_name="redis-cluster" # Name of the container
start_port=7001 # Start port
end_port=7006 # End port
# If the container already exists, remove it
if docker ps -a --format '{{.Names}}' | grep -q "^$container_name$"; then
echo "Removing existing container: $container_name"
docker rm -f $container_name
fi