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/
- 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 python manage.py migrate
- Grab IP -
docker-machine ip dev
- and view in your browser