...

Text file src/github.com/redis/go-redis/v9/docker-compose.yml

Documentation: github.com/redis/go-redis/v9

     1---
     2
     3services:
     4  redis:
     5    image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
     6    platform: linux/amd64
     7    container_name: redis-standalone
     8    environment:
     9      - TLS_ENABLED=yes
    10      - REDIS_CLUSTER=no
    11      - PORT=6379
    12      - TLS_PORT=6666
    13    command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
    14    ports:
    15      - 6379:6379
    16      - 6666:6666 # TLS port
    17    volumes:
    18      - "./dockers/standalone:/redis/work"
    19    profiles:
    20      - standalone
    21      - sentinel
    22      - all-stack
    23      - all
    24
    25  osscluster:
    26    image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
    27    platform: linux/amd64
    28    container_name: redis-osscluster
    29    environment:
    30      - NODES=6
    31      - PORT=16600
    32    command: "--cluster-enabled yes"
    33    ports:
    34      - "16600-16605:16600-16605"
    35    volumes:
    36      - "./dockers/osscluster:/redis/work"
    37    profiles:
    38      - cluster
    39      - all-stack
    40      - all
    41
    42  sentinel-cluster:
    43    image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
    44    platform: linux/amd64
    45    container_name: redis-sentinel-cluster
    46    network_mode: "host"
    47    environment:
    48      - NODES=3
    49      - TLS_ENABLED=yes
    50      - REDIS_CLUSTER=no
    51      - PORT=9121
    52    command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
    53    #ports:
    54    #  - "9121-9123:9121-9123"
    55    volumes:
    56      - "./dockers/sentinel-cluster:/redis/work"
    57    profiles:
    58      - sentinel
    59      - all-stack
    60      - all
    61
    62  sentinel:
    63    image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
    64    platform: linux/amd64
    65    container_name: redis-sentinel
    66    depends_on:
    67      - sentinel-cluster
    68    environment:
    69      - NODES=3
    70      - REDIS_CLUSTER=no
    71      - PORT=26379
    72    command: ${REDIS_EXTRA_ARGS:---sentinel}
    73    network_mode: "host"
    74    #ports:
    75    #  - 26379:26379
    76    #  - 26380:26380
    77    #  - 26381:26381
    78    volumes:
    79      - "./dockers/sentinel.conf:/redis/config-default/redis.conf"
    80      - "./dockers/sentinel:/redis/work"
    81    profiles:
    82      - sentinel
    83      - all-stack
    84      - all
    85
    86  ring-cluster:
    87    image: ${CLIENT_LIBS_TEST_IMAGE:-redislabs/client-libs-test:8.2.1-pre}
    88    platform: linux/amd64
    89    container_name: redis-ring-cluster
    90    environment:
    91      - NODES=3
    92      - TLS_ENABLED=yes
    93      - REDIS_CLUSTER=no
    94      - PORT=6390
    95    command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""}
    96    ports:
    97      - 6390:6390
    98      - 6391:6391
    99      - 6392:6392
   100    volumes:
   101      - "./dockers/ring:/redis/work"
   102    profiles:
   103      - ring
   104      - cluster
   105      - all-stack
   106      - all

View as plain text