Merge pull request #566 from dennis1248/master

Implement healthcheck on nitter and redis
This commit is contained in:
Zed 2022-05-10 14:10:44 +02:00 committed by GitHub
commit 6116a44d83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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
@ -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: