Running flower with celery

I have deployed a django app to production on fly successfully, i am trying to addflower to monitor celery, locally i run it as

python -m celery -A healthcare flower

it exposes port 5555 by default
my fly process are as follows

[processes]
    app= "gunicorn --bind :8000 --workers 2 app.wsgi"
    worker = "python -m celery -A app worker -l info"
    beat = "python -m celery -A app beat -l info"
    flower = "python -m celery -A app flower"

how can i access the flower ui?

I haven’t tested with flower, but something like the following in your fly.toml should do the trick:

[[services]]
  http_checks = []
  internal_port = 5555
  processes = ["flower"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25 
    soft_limit = 20 
    type = "connections"

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 5555
1 Like

Thanks! this worked