Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/realpython/dockerizing-django
https://github.com/realpython/dockerizing-django
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/realpython/dockerizing-django
- Owner: realpython
- Created: 2015-05-18T03:05:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-07T06:44:55.000Z (over 2 years ago)
- Last Synced: 2024-10-16T02:43:01.412Z (29 days ago)
- Language: Python
- Homepage: https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/
- Size: 22.5 KB
- Stars: 1,338
- Watchers: 42
- Forks: 484
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Django Development With Docker Compose and Machine
Featuring:
- Docker v18.09.2
- Docker Compose v1.23.2
- Docker Machine v0.16.1
- Python 3.7.3Blog 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;`
1. Configure your shell to use the new machine environment - `eval $(docker-machine env dev)`
1. Build images - `docker-compose build`
1. Start services - `docker-compose up -d`
1. Create migrations - `docker-compose run web /usr/local/bin/python manage.py migrate`
1. Grab IP - `docker-machine ip dev` - and view in your browser