Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 744 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 744 Bytes

Django 开发环境 With Docker Compose and Machine

准备

安装DockerDocker Toolkit

Docker及Python版本:

  • Docker v1.12.3
  • Docker Compose v1.8.1
  • Docker Machine v0.8.2
  • Python 2.7

OS X Instructions

  1. Start new machine - docker-machine create --engine-registry-mirror=https://mhpya9ls.mirror.aliyuncs.com -d virtualbox default
  2. Select machine - eval $(docker-machine env default)
  3. Build images - docker-compose build
  4. Start services - docker-compose up -d
  5. Create migrations - docker-compose run web /usr/local/bin/python manage.py migrate
  6. Grab IP - docker-machine ip default - and view in your browser