Skip to content

Commit 114f2c2

Browse files
committed
chore: Improve redis health check
1 parent cdae26b commit 114f2c2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docker/docker-compose.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ services:
6868
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf:ro
6969
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
7070
healthcheck:
71-
test: "exit 0"
71+
test: ["CMD", "redis-cli", "-h", "localhost", "ping"]
72+
interval: 5s
73+
timeout: 3s
74+
retries: 10
75+
start_period: 10s
7276

7377
redis-ephemeral:
7478
container_name: redis-ephemeral
@@ -78,7 +82,11 @@ services:
7882
networks:
7983
- core-network
8084
healthcheck:
81-
test: "exit 0"
85+
test: ["CMD", "redis-cli", "-h", "localhost", "ping"]
86+
interval: 5s
87+
timeout: 3s
88+
retries: 10
89+
start_period: 10s
8290

8391
# used to persist user/themes data
8492
mysql:

0 commit comments

Comments
 (0)