Add celery healthcheck & update existing healthcheck
This commit is contained in:
parent
161234defd
commit
ed37be0c60
1 changed files with 7 additions and 2 deletions
|
|
@ -78,6 +78,11 @@ services:
|
||||||
--scheduler django
|
--scheduler django
|
||||||
-n worker1@%h
|
-n worker1@%h
|
||||||
-n worker2@%h
|
-n worker2@%h
|
||||||
|
healthcheck:
|
||||||
|
test: celery --app newsreader status || exit 1
|
||||||
|
interval: 10s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
depends_on:
|
depends_on:
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
@ -107,9 +112,9 @@ services:
|
||||||
newsreader.wsgi:application
|
newsreader.wsgi:application
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: /usr/bin/curl --fail http://django:8000 || exit 1
|
test: /usr/bin/curl --fail http://django:8000 || exit 1
|
||||||
interval: 30s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 10
|
retries: 5
|
||||||
depends_on:
|
depends_on:
|
||||||
memcached:
|
memcached:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue