Skip to content

Commit 2255b84

Browse files
committed
fix CI crash
1 parent 0cbc31a commit 2255b84

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

compose.yaml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ services:
88
image: valkey/valkey:latest
99
container_name: valkey-standalone
1010
ports:
11-
- "6379:6379"
11+
- 6379:6379
1212
profiles:
1313
- standalone
1414
- sentinel
1515
- replica
1616
- all
17-
command: ['valkey-server', '--save', '""']
17+
command: valkey-server --save ""
18+
healthcheck:
19+
test: valkey-cli ping
20+
interval: 5s
21+
timeout: 5s
22+
retries: 5
1823

1924

2025
cluster:
@@ -23,28 +28,41 @@ services:
2328
context: .
2429
dockerfile: dockers/Dockerfile.cluster
2530
ports:
26-
- "16379:16379"
27-
- "16380:16380"
28-
- "16381:16381"
29-
- "16382:16382"
30-
- "16383:16383"
31-
- "16384:16384"
31+
- 16379:16379
32+
- 16380:16380
33+
- 16381:16381
34+
- 16382:16382
35+
- 16383:16383
36+
- 16384:16384
3237
volumes:
3338
- "./dockers/cluster.valkey.conf:/valkey.conf:ro"
3439
profiles:
3540
- cluster
3641
- all
3742

43+
environment:
44+
- VALKEY_CLUSTER=yes
45+
- NODES=6
46+
- REPLICAS=1
47+
3848
sentinel:
3949
image: valkey/valkey:latest
4050
container_name: valkey-sentinel
4151
depends_on:
42-
- valkey
52+
valkey:
53+
condition: service_healthy
54+
4355
entrypoint: "/usr/local/bin/valkey-sentinel /valkey.conf --port 26379"
4456
ports:
45-
- "26379:26379"
57+
- 26379:26379
4658
volumes:
4759
- "./dockers/sentinel.conf:/valkey.conf"
4860
profiles:
4961
- sentinel
5062
- all
63+
64+
healthcheck:
65+
test: valkey-cli -p 26379 ping
66+
interval: 5s
67+
timeout: 5s
68+
retries: 5

0 commit comments

Comments
 (0)