Skip to content

Commit

Permalink
Add healthcheck to redis
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Aug 15, 2024
1 parent 38f058e commit 7792301
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ services:
- API_HOSTNAME=http://localhost:8000
ports:
- 8000:8000
depends_on:
- redis

redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]

celery:
container_name: celery
Expand Down

0 comments on commit 7792301

Please sign in to comment.