Skip to content

Commit 29fbc19

Browse files
committed
feat: bump redis
1 parent c356f57 commit 29fbc19

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

docker-compose.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,42 @@
1-
version: '3.8'
2-
31
services:
42
redis-main-1:
5-
image: redis:7.2
3+
image: redis:8.2
64
volumes:
75
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
86
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
97

108
redis-main-2:
11-
image: redis:7.2
9+
image: redis:8.2
1210
volumes:
1311
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
1412
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
1513

1614
redis-main-3:
17-
image: redis:7.2
15+
image: redis:8.2
1816
volumes:
1917
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
2018
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
2119

2220
redis-replica-1:
23-
image: redis:7.2
21+
image: redis:8.2
2422
volumes:
2523
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
2624
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
2725

2826
redis-replica-2:
29-
image: redis:7.2
27+
image: redis:8.2
3028
volumes:
3129
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
3230
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
3331

3432
redis-replica-3:
35-
image: redis:7.2
33+
image: redis:8.2
3634
volumes:
3735
- ./resources/config/redis.conf:/usr/local/etc/redis/redis.conf
3836
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
3937

4038
redis-cluster-create:
41-
image: redis:7.2
39+
image: redis:8.2
4240
depends_on:
4341
- redis-main-1
4442
- redis-main-2
@@ -64,27 +62,23 @@ services:
6462
redisinsight-config:
6563
image: ellerbrock/alpine-bash-curl-ssl
6664
entrypoint: [ ]
65+
depends_on:
66+
- redisinsight
6767
command: [
68-
"/bin/bash", "-c",
69-
"sleep 20 &&\
70-
curl --location --request POST 'redisinsight:8001/api/instance/' \
68+
"/bin/bash", "-c",
69+
"sleep 5 &&\
70+
curl --location --request POST 'redisinsight:5540/api/databases/' \
7171
--header 'Content-Type: application/json' \
7272
--data-raw '{
7373
\"name\": \"CLUSTER-LOCAL\",
74-
\"connectionType\": \"CLUSTER\",
75-
\"seedNodes\": [
76-
{
77-
\"host\": \"redis-main-1\",
78-
\"port\": 6379
79-
}
80-
]
74+
\"host\": \"redis-main-1\",
75+
\"port\": 6379
8176
}'"
8277
]
8378

8479
redisinsight:
85-
image: redislabs/redisinsight
80+
image: redislabs/redisinsight:2.70.0
8681
depends_on:
8782
- redis-cluster-create
88-
- redisinsight-config
8983
ports:
90-
- "8083:8001"
84+
- "5540:5540"

0 commit comments

Comments
 (0)