@@ -9,6 +9,14 @@ x-sentry-service-config:
99 repo_name : sentry-shared-redis
1010 branch : main
1111 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
1220 kafka :
1321 description : Shared instance of kafka used by sentry services
1422 remote :
@@ -18,8 +26,8 @@ x-sentry-service-config:
1826 relay :
1927 description : Service that pushes some functionality from the Sentry SDKs as well as the Sentry server into a proxy process.
2028 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 ]
2331
2432x-programs :
2533 devserver :
@@ -46,8 +54,108 @@ services:
4654 labels :
4755 - orchestrator=devservices
4856 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
49154
50155networks :
51156 devservices :
52157 name : devservices
53158 external : true
159+
160+ volumes :
161+ redis-data :
0 commit comments