-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathcompose.yaml
More file actions
134 lines (126 loc) · 2.94 KB
/
Copy pathcompose.yaml
File metadata and controls
134 lines (126 loc) · 2.94 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
services:
valkey:
image: valkey/valkey:latest
container_name: valkey-standalone
ports:
- "6379:6379"
healthcheck:
test: valkey-cli -p 6379 ping
interval: 60s
start_interval: 1s
start_period: 10s
entrypoint: "/usr/local/bin/docker-entrypoint.sh --enable-debug-command yes --enable-module-command yes"
profiles:
- standalone
- sentinel
- replica
- all
replica:
image: valkey/valkey:latest
container_name: valkey-replica
depends_on:
- valkey
entrypoint: "/usr/local/bin/docker-entrypoint.sh --replicaof valkey 6379"
ports:
- "6380:6379"
healthcheck:
test: valkey-cli -p 6379 ping
interval: 60s
start_interval: 1s
start_period: 10s
profiles:
- replica
- all
cluster:
image: valkey-py-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"
healthcheck:
test: valkey-cli -p 16379 ping
interval: 60s
start_interval: 1s
start_period: 10s
profiles:
- cluster
- all
stunnel:
image: valkey-py-stunnel
build:
context: ./dockers/stunnel
depends_on:
- valkey
ports:
- "6666:6666"
profiles:
- all
- standalone
- ssl
volumes:
- "./dockers/stunnel/conf:/etc/stunnel/conf.d:ro"
- "./dockers/stunnel/keys:/etc/stunnel/keys:ro"
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"
healthcheck:
test: valkey-cli -p 26379 ping
interval: 60s
start_interval: 1s
start_period: 10s
profiles:
- sentinel
- all
sentinel2:
image: valkey/valkey:latest
container_name: valkey-sentinel2
depends_on:
- valkey
entrypoint: "/usr/local/bin/valkey-sentinel /valkey.conf --port 26380"
ports:
- "26380:26380"
volumes:
- "./dockers/sentinel.conf:/valkey.conf"
healthcheck:
test: valkey-cli -p 26380 ping
interval: 60s
start_interval: 1s
start_period: 10s
profiles:
- sentinel
- all
sentinel3:
image: valkey/valkey:latest
container_name: valkey-sentinel3
depends_on:
- valkey
entrypoint: "/usr/local/bin/valkey-sentinel /valkey.conf --port 26381"
ports:
- "26381:26381"
volumes:
- "./dockers/sentinel.conf:/valkey.conf"
healthcheck:
test: valkey-cli -p 26381 ping
interval: 60s
start_interval: 1s
start_period: 10s
profiles:
- sentinel
- all