1 min readMar 8, 2019
Check out the official docs: https://docs.docker.com/compose/django/
I can’t answer your question specifically without more context, but Docker recommends a Dockerfile and a docker-compose.yml to run a Django app
Also, typically when you use gunicorn you’ll want to point it at Django’s built-in WSGI: https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/gunicorn/