Put your project to $(pwd)/docker/django/app/
$ git clone https://github.com/mertongngl/dockerComposeForDjango.git
$ cd dockerComposeForDjango/
$ cp 'your source code for django' docker/django/app
If you want to add some python library, you can edit $(pwd)/docker/django/requirements.txt
If you want to use elasticsearch, you can use elasticsearch container in django container with 'es' alias.
curl http://es:9200/_cluster/health?pretty=true
You can use postgresql container in django container with 'postgres_db' alias. You can try to ping postgres_db now.
$ docker-compose up -d
$ docker-compose down