|
1 | | -# sudo docker compose exec cluster-m1 redis-cli -a mycluster --cluster create 127.0.0.1:7380 127.0.0.1:7381 127.0.0.1:7382 --cluster-yes |
| 1 | +--- |
| 2 | +# image tag 8.0-RC2-pre is the one matching the 8.0 GA release |
| 3 | +x-client-libs-stack-image: &client-libs-stack-image |
| 4 | + image: 'redislabs/client-libs-test:${CLIENT_LIBS_TEST_STACK_IMAGE_TAG:-8.0.2}' |
| 5 | + |
| 6 | +x-client-libs-image: &client-libs-image |
| 7 | + image: 'redislabs/client-libs-test:${CLIENT_LIBS_TEST_IMAGE_TAG:-8.0.2}' |
2 | 8 |
|
3 | 9 | services: |
4 | 10 | redis: |
5 | | - image: redis/redis-stack-server:latest |
6 | | - network_mode: host |
| 11 | + <<: *client-libs-image |
| 12 | + container_name: redis-standalone |
| 13 | + environment: |
| 14 | + - TLS_ENABLED=yes |
| 15 | + - REDIS_CLUSTER=no |
| 16 | + - PORT=6379 |
| 17 | + - TLS_PORT=6666 |
| 18 | + command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""} |
| 19 | + ports: |
| 20 | + - 6379:6379 |
| 21 | + - 6666:6666 # TLS port |
| 22 | + volumes: |
| 23 | + - './dockers/standalone:/redis/work' |
| 24 | + profiles: |
| 25 | + - standalone |
| 26 | + - sentinel |
| 27 | + - replica |
| 28 | + - all-stack |
| 29 | + - all |
| 30 | + |
| 31 | + replica: |
| 32 | + <<: *client-libs-image |
| 33 | + container_name: redis-replica |
| 34 | + depends_on: |
| 35 | + - redis |
| 36 | + environment: |
| 37 | + - TLS_ENABLED=no |
| 38 | + - REDIS_CLUSTER=no |
| 39 | + - PORT=6380 |
| 40 | + command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --replicaof redis 6379 --protected-mode no --save ""} |
| 41 | + ports: |
| 42 | + - 6380:6380 |
| 43 | + volumes: |
| 44 | + - './dockers/replica:/redis/work' |
| 45 | + profiles: |
| 46 | + - replica |
| 47 | + - all-stack |
| 48 | + - all |
| 49 | + |
| 50 | + cluster: |
| 51 | + <<: *client-libs-image |
| 52 | + container_name: redis-cluster |
| 53 | + environment: |
| 54 | + - REDIS_CLUSTER=yes |
| 55 | + - NODES=6 |
| 56 | + - REPLICAS=1 |
| 57 | + - TLS_ENABLED=yes |
| 58 | + - PORT=16379 |
| 59 | + - TLS_PORT=27379 |
| 60 | + command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --tls-auth-clients optional --save ""} |
| 61 | + ports: |
| 62 | + - '16379-16384:16379-16384' |
| 63 | + - '27379-27384:27379-27384' |
| 64 | + volumes: |
| 65 | + - './dockers/cluster:/redis/work' |
| 66 | + profiles: |
| 67 | + - cluster |
| 68 | + - all-stack |
| 69 | + - all |
| 70 | + |
| 71 | + sentinel: |
| 72 | + <<: *client-libs-image |
| 73 | + container_name: redis-sentinel |
| 74 | + depends_on: |
| 75 | + - redis |
| 76 | + environment: |
| 77 | + - REDIS_CLUSTER=no |
| 78 | + - NODES=3 |
| 79 | + - PORT=26379 |
| 80 | + command: ${REDIS_EXTRA_ARGS:---sentinel} |
| 81 | + ports: |
| 82 | + - 26379:26379 |
| 83 | + - 26380:26380 |
| 84 | + - 26381:26381 |
| 85 | + volumes: |
| 86 | + - './dockers/sentinel.conf:/redis/config-default/redis.conf' |
| 87 | + - './dockers/sentinel:/redis/work' |
| 88 | + profiles: |
| 89 | + - sentinel |
| 90 | + - all-stack |
| 91 | + - all |
| 92 | + |
| 93 | + redis-stack: |
| 94 | + <<: *client-libs-stack-image |
| 95 | + container_name: redis-stack |
7 | 96 | environment: |
8 | | - - 'REDIS_ARGS=--port 6380 --requirepass myredis --appendonly yes' |
9 | | - cluster-m1: |
10 | | - image: redis:latest |
11 | | - network_mode: host |
12 | | - command: 'redis-server --port 7380 --requirepass mycluster --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes' |
13 | | - cluster-m2: |
14 | | - image: redis:latest |
15 | | - network_mode: host |
16 | | - command: 'redis-server --port 7381 --requirepass mycluster --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes' |
17 | | - cluster-m3: |
18 | | - image: redis:latest |
19 | | - network_mode: host |
20 | | - command: 'redis-server --port 7382 --requirepass mycluster --cluster-enabled yes --cluster-config-file nodes.conf --cluster-node-timeout 5000 --appendonly yes' |
| 97 | + - REDIS_CLUSTER=no |
| 98 | + - PORT=6379 |
| 99 | + command: ${REDIS_EXTRA_ARGS:---enable-debug-command yes --enable-module-command yes --save ""} |
| 100 | + ports: |
| 101 | + - 6479:6379 |
| 102 | + volumes: |
| 103 | + - './dockers/redis-stack:/redis/work' |
| 104 | + profiles: |
| 105 | + - standalone |
| 106 | + - all-stack |
| 107 | + - all |
0 commit comments