New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get flower to work with Redis in Docker #854
Comments
This configuration works for me: redis: flower: |
@parisk Any luck. I am facing the same issue. |
No luck. Registered tasks do not get displayed, unless the |
@parisk are you sure your celery broker is at I have it configured like so (
Notice the
|
Hi, I am experiencing same problem with not getting registered tasks and workers at Flower. Both Celery and Flower are using broker at the same address. redis:
image: 'redis:4-alpine'
ports:
- 6379:6379
celery:
build:
dockerfile: celery.dockerfile
context: ./
volumes:
- ./:/code
environment:
- C_FORCE_ROOT=true
command:
- bash
- -c
- |
rm celerybeat.pid
python manage.py celery worker --loglevel=DEBUG -B -E
depends_on:
- redis
links:
- redis
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis/2
- CELERY_BACKEND_URL=redis://redis/1
- FLOWER_PORT=8888
command: ["flower", "--broker=redis://redis/2", "--port=8888"]
ports:
- 8888:8888 I would appreciate if someone could point at the right setup for Celery and Flower. Thanks. |
Wow, I hadn't taken a look at my notifications for this issue for quite a while and there is considerable activity. So, I have solved the issue and have been running Flower in Docker Swarm successfully now. There are two things to have in mind:
So, I will move forward and close this issue, while providing my setup. Setup
|
Hi @parisk Thank you for your response and example but it did not work for me. I have created a new flower image based on the latest flower code (version 0.9.3) flower.dockerfile
and start it as services in docker compose:
Flower still does not show any workers or tasks. |
+1 |
I found what was the problem in my case. So the fix would be:
|
Hi everyone. I am trying to setup Flower in Docker to monitor my Celery workers and I can't seem to be able to get things working right.
What I am trying to do is run Flower in its own container, without direct access to my application's code and Celery configuration and.
I am able to run Flower successfully (without exceptions) and point it to the appropriate broker, using the following Docker Compose configuration:
The problem is that although Flower connects successfully to the broker, it does not print out the actual tasks and workers registered for my Celery application:
Despite that, when I connect to my Redis server, I can see the workers registered in the Broker:
Can you please help me set up Flower in its own isolated container, or let me know if that is not possible and I have to bundle it with my applications code?
Thanks a lot for your time 🙏.
The text was updated successfully, but these errors were encountered: