Let's explore the Django and Docker boilerplate:
- Download the code from https://github.com/archatas/django_docker to your computer to the ~/projects/django_docker directory, for example.
- Open the docker-compose.yml file. There are three containers that need to be created: nginx, gunicorn, and db. Don't worry if it looks complicated; we'll describe it in detail later:
# docker-compose.ymlversion: "3.7"services: nginx: image: nginx:latest ports: - "80:80" volumes: - ./config/nginx/conf.d:/etc/nginx/conf.d - static_volume:/home/myproject/static - media_volume:/home/myproject/media ...