Skip to content

Commit

Permalink
update healthcheck for redis
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoof committed Aug 27, 2024
1 parent 4f6cd4a commit 1c4f664
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ services:
image: redis:alpine
networks:
- transcendence_network
command: ["CMD", "redis-cli", "--raw", "incr", "ping"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5

user-service:
container_name: user-service
Expand Down

0 comments on commit 1c4f664

Please sign in to comment.