Skip to content

Demo of using docker, celery, django, redis, postgres, docker compose

Notifications You must be signed in to change notification settings

John-Doherty01/docker-celery

Repository files navigation

docker-celery

If you want a production ready template to deploy to kubernetes checkout out here: https://github.com/doherty-labs/django-rest-api

Getting started

docker-compose contains all required containers.

  • Start the postgres container and pgadmin container first.
  • Access pgadmin after starting via http://localhost:5050/browser/ password is changeme.
  • Create a database user called hitman with a password hitman. Superuser access required.
  • Create a database called hitman_db and grant hitman user permission.
  • After doing so run the rest-api container once hitman_db database has been setup and running.
  • Visit http://localhost:8000/hitmen/start-job to start a job, monitor celery logs to watch processing.
  • Visit http://localhost:5555/ for celery flower.
  • celery -A findmyhitman worker --beat --loglevel=DEBUG --scheduler django_celery_beat.schedulers:DatabaseScheduler
  • docker run -dp 3000:3000 hitman/webapp

About

Demo of using docker, celery, django, redis, postgres, docker compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published