I am running flower inside docker,but when I am trying to access it from browser , it's waiting for the response.
Command used to run flower docker-compose
celery flower -A nrn --address=0.0.0.0 --port=5555 --url-prefix=flower ,port is mapped to 5555.
docker ps -a
When the docker-compose runs and if I immediately open flower, the dashboard comes but it won't respond.Moreover, if I try to open flower it won't display the dashboard as well.
nginx.conf
worker_processes 1;
events {
worker_connections 1024;
}
http {
upstream rapid_nrn {
ip_hash;
server web:6500;
}
upstream rapid_nrn_dj {
ip_hash;
server django:8000;
}
upstream rapid_nrn_flower {
ip_hash;
server flower:5555;
}
server {
listen 80;
location ~^/flower/? {
proxy_pass http://localhost:5555;
rewrite ^/flower/?(.*)$ /$1 break;
sub_filter '="/' '="/flower/';
sub_filter_last_modified on;
sub_filter_once off;
proxy_set_header Host $host;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}
logs of flower conatainer
[I 200115 07:33:12 command:136] Visit me at http://0.0.0.0:5555
[I 200115 07:33:12 command:141] Broker: redis://127.0.0.1:6379//
[I 200115 07:33:12 command:144] Registered tasks:
['celery.accumulate',
'celery.backend_cleanup',
'celery.chain',
'celery.chord',
'celery.chord_unlock',
'celery.chunks',
'celery.group',
'celery.map',
'celery.starmap',
'nrn.celery.debug_task',
'send.tasks.send_mails']
*redis docker-compose**
redismb:
image: redis:2.8.19
hostname: redis
ports:
- "6379:6379"
networks:
- nra
redis configuration in django's settings.py
CELERY_BROKER_URL = os.environ.get('redis', 'redis://127.0.0.1:6379/')
celery logs