Skip to content

Commit

Permalink
Implement healthcheck on nitter and redis
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis1248 committed Mar 4, 2022
1 parent ecb6fe4 commit 36a24cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ services:
depends_on:
- nitter-redis
restart: unless-stopped
healthcheck:
test: wget -nv --tries=1 --spider http://127.0.0.1:8080/Jack/status/20 || exit 1
interval: 30s
timeout: 5s
retries: 2

nitter-redis:
image: redis:6-alpine
Expand All @@ -20,6 +25,11 @@ services:
volumes:
- nitter-redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 2

volumes:
nitter-redis:

0 comments on commit 36a24cf

Please sign in to comment.