Untitled
version: '3' services: redis-node-1: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6371:6379 volumes: - redis-cluster_data-1:/Users/user/Docker/docker-compose/redis-cluster/data environment: - 'REDIS_PASSWORD=bitnami' - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' redis-node-2: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6372:6379 volumes: - redis-cluster_data-2:/Users/user/Docker/docker-compose/redis-cluster/data environment: - 'REDIS_PASSWORD=bitnami' - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' redis-node-3: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6373:6379 volumes: - redis-cluster_data-3:/Users/user/Docker/docker-compose/redis-cluster/data environment: - 'REDIS_PASSWORD=bitnami' - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' redis-node-4: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6374:6379 volumes: - redis-cluster_data-4:/Users/user/Docker/docker-compose/redis-cluster/data environment: - 'REDIS_PASSWORD=bitnami' - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' redis-node-5: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6375:6379 volumes: - redis-cluster_data-5:/Users/user/Docker/docker-compose/redis-cluster/data environment: - 'REDIS_PASSWORD=bitnami' - 'REDIS_NODES=redis-node-0 redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5' redis-node-6: image: docker.io/bitnami/redis-cluster:7.2 networks: - redis-network ports: - 6376:6379 volumes: - redis-cluster_data-6:/Users/user/Docker/docker-compose/redis-cluster/data depends_on: - redis-node-1 - redis-node-2 - redis-node-3 - redis-node-4 - redis-node-5 environment: - 'REDIS_PASSWORD=bitnami' - 'REDISCLI_AUTH=bitnami' - 'REDIS_CLUSTER_REPLICAS=1' - 'REDIS_NODES=redis-node-1 redis-node-2 redis-node-3 redis-node-4 redis-node-5 redis-node-6' - 'REDIS_CLUSTER_CREATOR=yes' volumes: redis-cluster_data-1: driver: local redis-cluster_data-2: driver: local redis-cluster_data-3: driver: local redis-cluster_data-4: driver: local redis-cluster_data-5: driver: local redis-cluster_data-6: driver: local networks: redis-network: driver: bridge
Leave a Comment