-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
50 lines (43 loc) · 952 Bytes
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
services:
valkey:
image: valkey/valkey:latest
container_name: valkey-standalone
ports:
- "6379:6379"
profiles:
- standalone
- sentinel
- replica
- all
command: ['valkey-server', '--save', '""']
cluster:
container_name: valkey-cluster
build:
context: .
dockerfile: dockers/Dockerfile.cluster
ports:
- "16379:16379"
- "16380:16380"
- "16381:16381"
- "16382:16382"
- "16383:16383"
- "16384:16384"
volumes:
- "./dockers/cluster.valkey.conf:/valkey.conf:ro"
profiles:
- cluster
- all
sentinel:
image: valkey/valkey:latest
container_name: valkey-sentinel
depends_on:
- valkey
entrypoint: "/usr/local/bin/valkey-sentinel /valkey.conf --port 26379"
ports:
- "26379:26379"
volumes:
- "./dockers/sentinel.conf:/valkey.conf"
profiles:
- sentinel
- all