File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ services:
2626 - redis_data:/data
2727 networks :
2828 - sr24_backend
29+ healthcheck :
30+ test : ["CMD", "redis-cli", "ping"]
31+ interval : 5s
32+ timeout : 3s
33+ retries : 5
2934
3035 prisma :
3136 build :
@@ -81,8 +86,10 @@ services:
8186 REDIS_PORT : 6379
8287 TRUST_PROXY : " true"
8388 depends_on :
84- - timescaledb
85- - redis
89+ timescaledb :
90+ condition : service_healthy
91+ redis :
92+ condition : service_healthy
8693 networks :
8794 - traefik_proxy
8895 - sr24_backend
@@ -111,8 +118,10 @@ services:
111118 REDIS_PORT : 6379
112119 TRUST_PROXY : " true"
113120 depends_on :
114- - timescaledb
115- - redis
121+ timescaledb :
122+ condition : service_healthy
123+ redis :
124+ condition : service_healthy
116125 networks :
117126 - traefik_proxy
118127 - sr24_backend
@@ -143,8 +152,10 @@ services:
143152 REDIS_HOST : redis
144153 REDIS_PORT : 6379
145154 depends_on :
146- - timescaledb
147- - redis
155+ timescaledb :
156+ condition : service_healthy
157+ redis :
158+ condition : service_healthy
148159 networks :
149160 - sr24_backend
150161 labels :
@@ -166,8 +177,10 @@ services:
166177 REDIS_HOST : redis
167178 REDIS_PORT : 6379
168179 depends_on :
169- - timescaledb
170- - redis
180+ timescaledb :
181+ condition : service_healthy
182+ redis :
183+ condition : service_healthy
171184 networks :
172185 - sr24_backend
173186 labels :
You can’t perform that action at this time.
0 commit comments