Featuring:
- Docker v18.09.2
- Docker Compose v1.23.2
- Docker Machine v0.16.1
- Python 3.7.3
Blog post -> https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/
- Start new machine -
docker-machine create -d virtualbox dev;
- Configure your shell to use the new machine environment -
eval $(docker-machine env dev)
- Build images -
docker-compose build
- Start services -
docker-compose up -d
- Create migrations -
docker-compose run web /usr/local/bin/python manage.py migrate
- Grab IP -
docker-machine ip dev
- and view in your browser