Django with Celery

a year ago

Description: Basic structure of a Django app with Postgres, Celery, Redis, and Flower.

Category: Starters

URL: https://railway.app/template/a6vvTu

3 Replies

a year ago

Hey looks like your Django, Celery, and Flower services are missing any reference variables to the databases (be sure to use the private URLs)

Additionally, the celery service does not specify a concurrency flag in its start command, which will cause celery to spawn a lot of workers that use a lot of memory.


a year ago

Thanks @brody! It was still a WIP, but I've added them now. That said, I couldn't get the Django service to connect to my Postgres database using the internal URL (getting an invalid URL error). Using the public proxy URL for the time being.

Other than that it's all wired up.


a year ago

You may need a sleep 3 because the private network has an initialisation delay that the public network doesn't.


Django with Celery - Railway Help Station