Skip to content

Setting up flower with docker-compose for multiple celery workers? #1323

Answered by dstromberg
dstromberg asked this question in Q&A
Discussion options

You must be logged in to vote

I just needed "celery flower" instead of "celery --app whatever flower".

Here's the relevant portion of my docker-compose.yml:

  flower:
    image: mher/flower
    container_name: flower
    command: celery flower
    working_dir: /data
    ports:
      - 5555:5555
    environment:
      CELERY_BROKER_URL: amqp://${RABBIT_USER}:${RABBIT_PASSWORD}@${RABBIT_HOST}:5672/${RABBIT_VHOST}
      CELERY_RESULT_BACKEND: db+mysql+pymysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/celery_dev
    depends_on:
      - celery_worker
      - celery_worker2
      - mysql
      - rabbitmq

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dstromberg
Comment options

Answer selected by dstromberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant