@@ -9,6 +9,14 @@ x-sentry-service-config:
9
9
repo_name : sentry-shared-redis
10
10
branch : main
11
11
repo_link : https://github.com/getsentry/sentry-shared-redis.git
12
+ redis-master :
13
+ description : Master instance of redis to be used with sentinel
14
+ redis-replica :
15
+ description : Replica instance of redis to be used with sentinel
16
+ redis-sentinel-1 :
17
+ description : Instance of redis-sentinel
18
+ redis-sentinel-2 :
19
+ description : Another instance of redis-sentinel
12
20
kafka :
13
21
description : Shared instance of kafka used by sentry services
14
22
remote :
@@ -18,8 +26,8 @@ x-sentry-service-config:
18
26
relay :
19
27
description : Service that pushes some functionality from the Sentry SDKs as well as the Sentry server into a proxy process.
20
28
modes :
21
- default : [redis, kafka]
22
- containerized : [redis, kafka, relay]
29
+ default : [redis, kafka, redis-sentinel-1, redis-sentinel-2, redis-master, redis-replica ]
30
+ containerized : [redis, kafka, relay, redis-sentinel-1, redis-sentinel-2, redis-master, redis-replica ]
23
31
24
32
x-programs :
25
33
devserver :
@@ -46,8 +54,108 @@ services:
46
54
labels :
47
55
- orchestrator=devservices
48
56
restart : unless-stopped
57
+ redis-master :
58
+ image : ghcr.io/getsentry/image-mirror-library-redis:5.0-alpine
59
+ healthcheck :
60
+ test : redis-cli -p 16379 ping | grep PONG
61
+ interval : 5s
62
+ timeout : 5s
63
+ retries : 3
64
+ command :
65
+ - redis-server
66
+ - --appendonly
67
+ - yes
68
+ - --port
69
+ - " 16379"
70
+ ports :
71
+ - " 16379:16379"
72
+ labels :
73
+ - orchestrator=devservices
74
+ networks :
75
+ - devservices
76
+ restart : unless-stopped
77
+ redis-replica :
78
+ image : ghcr.io/getsentry/image-mirror-library-redis:5.0-alpine
79
+ healthcheck :
80
+ test : redis-cli -p 16380 ping | grep PONG
81
+ interval : 5s
82
+ timeout : 5s
83
+ retries : 3
84
+ command :
85
+ - redis-server
86
+ - --appendonly
87
+ - yes
88
+ - --port
89
+ - " 16380"
90
+ - --replicaof
91
+ - redis-master
92
+ - " 16379"
93
+ depends_on :
94
+ - redis-master
95
+ ports :
96
+ - " 16380:16380"
97
+ labels :
98
+ - orchestrator=devservices
99
+ networks :
100
+ - devservices
101
+ restart : unless-stopped
102
+ redis-sentinel-1 :
103
+ image : ghcr.io/getsentry/image-mirror-library-redis:5.0-alpine
104
+ healthcheck :
105
+ test : redis-cli -p 26379 ping | grep PONG
106
+ interval : 5s
107
+ timeout : 5s
108
+ retries : 3
109
+ command :
110
+ - sh
111
+ - -ec
112
+ - |
113
+ mkdir -p /etc/redis
114
+ cp -n /sentinel.bootstrap.conf /etc/redis/sentinel.conf
115
+ redis-server /etc/redis/sentinel.conf --sentinel --port 26379
116
+ depends_on :
117
+ - redis-master
118
+ - redis-replica
119
+ ports :
120
+ - " 26379:26379"
121
+ labels :
122
+ - orchestrator=devservices
123
+ networks :
124
+ - devservices
125
+ volumes :
126
+ - ./config/sentinel.bootstrap.conf:/sentinel.bootstrap.conf:ro
127
+ restart : unless-stopped
128
+ redis-sentinel-2 :
129
+ image : ghcr.io/getsentry/image-mirror-library-redis:5.0-alpine
130
+ healthcheck :
131
+ test : redis-cli -p 26380 ping | grep PONG
132
+ interval : 5s
133
+ timeout : 5s
134
+ retries : 3
135
+ command :
136
+ - sh
137
+ - -ec
138
+ - |
139
+ mkdir -p /etc/redis
140
+ cp -n /sentinel.bootstrap.conf /etc/redis/sentinel.conf
141
+ redis-server /etc/redis/sentinel.conf --sentinel --port 26380
142
+ depends_on :
143
+ - redis-master
144
+ - redis-replica
145
+ ports :
146
+ - " 26380:26380"
147
+ labels :
148
+ - orchestrator=devservices
149
+ networks :
150
+ - devservices
151
+ volumes :
152
+ - ./config/sentinel.bootstrap.conf:/sentinel.bootstrap.conf:ro
153
+ restart : unless-stopped
49
154
50
155
networks :
51
156
devservices :
52
157
name : devservices
53
158
external : true
159
+
160
+ volumes :
161
+ redis-data :
0 commit comments