Skip to content

Commit

Permalink
feat: Add healthcheck on REDIS (closed #85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Nouguier committed Oct 15, 2019
1 parent 18db67a commit af643a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deploy/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ version: '3.5'
services:
redis:
image: ${REDIS_IMAGE}:${REDIS_TAG}
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 30s
timeout: 10s
retries: 3
deploy:
replicas: 1
placement:
Expand Down

0 comments on commit af643a2

Please sign in to comment.