File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,15 @@ services:
5656 - redis
5757 - web
5858 command : >
59- bash -c "
60- echo Starting celery;
61- python3 -m celery -A EnigmaAutomation worker -n worker1 -l DEBUG"
59+ /bin/bash -c "
60+ while ! nc -z redis 6379;
61+ do
62+ echo sleeping;
63+ sleep 1;
64+ done;
65+ echo Connected!;
66+ echo Starting celery;
67+ python3 -m celery -A EnigmaAutomation worker -n worker1 -l DEBUG"
6268 test :
6369 container_name : test
6470 build :
Original file line number Diff line number Diff line change 1- CELERY_BROKER_URL = redis://redis :6379/0
2- CELERY_RESULT_BACKEND = redis://redis :6379/0
1+ CELERY_BROKER_URL = redis://host.docker.internal :6379
2+ CELERY_RESULT_BACKEND = redis://host.docker.internal :6379
33C_FORCE_ROOT = true
44MYSQL_ROOT_PASSWORD = testtest
55MYSQL_DATABASE = enigma
You can’t perform that action at this time.
0 commit comments