Django Development With Docker Compose and Machine

Featuring:

  • Docker v20.10.5
  • Docker Compose v1.28.5
  • Docker Machine v0.16.1
  • Python 3.9.0

Blog post -> https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/

OS X Instructions

  1. Start new machine - docker-machine create -d virtualbox dev;
  2. Configure your shell to use the new machine environment - eval $(docker-machine env dev)
  3. Build images - docker-compose build
  4. Start services - docker-compose up -d
  5. Create migrations - docker-compose run web python manage.py migrate
  6. Grab IP - docker-machine ip dev - and view in your browser