django-react-boilerplate icon indicating copy to clipboard operation
django-react-boilerplate copied to clipboard

Issue with celery container when using Docker

Open jmwenda opened this issue 4 years ago • 1 comments

Describe the bug Having issues getting the celery container to run. I get the error

celery_1 | python: can't open file 'manage.py': [Errno 2] No such file or directory To Reproduce This is on a fresh set up following instructions. I have tried pruning the images, volumes and container and started fresh but still keep having the celery not starting up.

jmwenda avatar Sep 30 '21 15:09 jmwenda

I had the same issue, to fix it I slightly changed the celery section of the docker compose file:

celery:
    build:
      dockerfile: backend/Dockerfile
      context: .
    command: python manage.py celery
    env_file: backend/.env
    volumes:
      - ./:/home/user/app/
    depends_on:
      - db
      - broker
      - result

I'm not sure what effect this will have on anything else, but I haven't run into any other issues just yet.

ben256 avatar Mar 19 '22 13:03 ben256

The celery setup on docker-compose.yml seems broken indeed. I've opened a PR with the suggested fix from @ben256

hugobessa avatar Jun 30 '23 13:06 hugobessa