Skip to content

CoinLQ/AnyCollating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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