Skip to content

Django + Celery + Redis + MariaDB + Docker Template

License

Notifications You must be signed in to change notification settings

meloncafe/django-celery-docker-template

Repository files navigation

Django + Celery + Redis + MariaDB + Docker Template

Include Package

mysqlclient
requests
redis
celery
django
django-redis-cache
django-celery-beat
django-redis
django-ipware
django-request-logging
django-environ
environ
gunicorn

All packages except 'django-redis' are up to date
django-redis are >=5.2.0,<6.0.0

How to use

Copy the config/.env.example file to the .env file, fill in the contents and use it.

For development, use your own django runserver and use Docker for Production deployment

Make Superuser

$ docker-compose exec django-app-green(or blue) bash
$ python manage.py createsuperuser

Migration automatically migrates containers as they run.

Docker Image Build

$ build.sh

Production Deploy

$ deploy.sh
  • Blue/Green Deployment
  • Nginx Port : 8000