mirror of
https://github.com/zedeus/nitter
synced 2024-11-22 01:45:22 +01:00
Implement healthcheck on nitter and redis
This commit is contained in:
parent
ecb6fe4162
commit
36a24cf553
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user