github.com/wangyougui/gf/v2@v2.6.5/.github/workflows/redis/docker-compose.yml (about)

     1  version: "2"
     2  
     3  services:
     4    redis-master:
     5      container_name: redis-master
     6      image: "loads/redis:7.0-sentinel"
     7      environment:
     8        - REDIS_REPLICATION_MODE=master
     9        - REDIS_PASSWORD=111111
    10      ports:
    11        - 6380:6379
    12  
    13    redis-slave1:
    14      container_name: redis-slave1
    15      image: "loads/redis:7.0-sentinel"
    16      environment:
    17        - REDIS_REPLICATION_MODE=slave
    18        - REDIS_MASTER_HOST=redis-master
    19        - REDIS_MASTER_PASSWORD=111111
    20        - REDIS_PASSWORD=111111
    21      ports:
    22        - 6381:6379
    23      depends_on:
    24        - redis-master
    25      links:
    26        - redis-master
    27  
    28    redis-slave2:
    29      container_name: redis-slave2
    30      image: "loads/redis:7.0-sentinel"
    31      environment:
    32        - REDIS_REPLICATION_MODE=slave
    33        - REDIS_MASTER_HOST=redis-master
    34        - REDIS_MASTER_PASSWORD=111111
    35        - REDIS_PASSWORD=111111
    36      ports:
    37        - 6382:6379
    38      depends_on:
    39        - redis-master
    40      links:
    41        - redis-master
    42  
    43    redis-sentinel-1:
    44      container_name: redis-sentinel-1
    45      image: "loads/redis-sentinel:7.0"
    46      environment:
    47        - REDIS_MASTER_HOST=redis-master
    48        - REDIS_MASTER_PORT_NUMBER=6379
    49        - REDIS_MASTER_PASSWORD=111111
    50      depends_on:
    51        - redis-master
    52        - redis-slave1
    53        - redis-slave2
    54      ports:
    55        - 26379:26379
    56      links:
    57        - redis-master
    58        - redis-slave1
    59        - redis-slave2
    60  
    61    redis-sentinel-2:
    62      container_name: redis-sentinel-2
    63      image: "loads/redis-sentinel:7.0"
    64      environment:
    65        - REDIS_MASTER_HOST=redis-master
    66        - REDIS_MASTER_PORT_NUMBER=6379
    67        - REDIS_MASTER_PASSWORD=111111
    68      depends_on:
    69        - redis-master
    70        - redis-slave1
    71        - redis-slave2
    72      links:
    73        - redis-master
    74        - redis-slave1
    75        - redis-slave2
    76      ports:
    77        - 26380:26379
    78  
    79    redis-sentinel-3:
    80      container_name: redis-sentinel-3
    81      image: "loads/redis-sentinel:7.0"
    82      environment:
    83        - REDIS_MASTER_HOST=redis-master
    84        - REDIS_MASTER_PORT_NUMBER=6379
    85        - REDIS_MASTER_PASSWORD=111111
    86      depends_on:
    87        - redis-master
    88        - redis-slave1
    89        - redis-slave2
    90      ports:
    91        - 26381:26379
    92      links:
    93        - redis-master
    94        - redis-slave1
    95        - redis-slave2