-
Notifications
You must be signed in to change notification settings - Fork 14
/
compose.yaml
102 lines (94 loc) · 2.15 KB
/
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
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
---
services:
valkey:
image: valkey/valkey:latest
container_name: valkey-standalone
ports:
- 6379:6379
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
profiles:
- replica
- all
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
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"
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"
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"
profiles:
- sentinel
- all