# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

type: jvm
entryService: http://localhost:8080/jedis-2.x-3.x-cluster-scenario/case/jedis-2.x-3.x-cluster-scenario
healthCheck: http://localhost:8080/jedis-2.x-3.x-cluster-scenario/case/healthCheck
startScript: ./bin/startup.sh
environment:
  - REDIS_CLUSTER_SERVER=redis-server1:6379,redis-server2:6379,redis-server3:6379
  - SW_PLUGIN_JEDIS_TRACE_REDIS_PARAMETERS=true
dependencies:
  redis-server1:
    image: bitnami/redis-cluster:7.0
    hostname: redis-server1
    environment:
      - ALLOW_EMPTY_PASSWORD=true
      - REDIS_NODES=redis-server1 redis-server2 redis-server3
  redis-server2:
    image: bitnami/redis-cluster:7.0
    hostname: redis-server2
    environment:
      - ALLOW_EMPTY_PASSWORD=true
      - REDIS_NODES=redis-server1 redis-server2 redis-server3
  redis-server3:
    image: bitnami/redis-cluster:7.0
    hostname: redis-server3
    depends_on:
      - redis-server1
      - redis-server2
    environment:
      - ALLOW_EMPTY_PASSWORD=true
      - REDIS_CLUSTER_REPLICAS=0
      - REDIS_NODES=redis-server1 redis-server2 redis-server3
      - REDIS_CLUSTER_CREATOR=yes

