Check out the post.
-
Fork/Clone
-
Build the images and run the containers:
- development (django default server):
$ docker-compose up -d --build
Test it out at http://localhost:8000
App's folder is mounted into container and your changes apply automatically.
- production (gunicorn + nginx):
$ docker-compose -f docker-compose.prod.yml up --build -d
No mounted folders -- to apply changes container should be rebuilt
Test it out at http://localhost:1337