Use the following group of containers
- nginx
- unicorn + Ruby on Rails
- mysql 5.6
- memcache
- elastic search
- data store
Change docker-compose.yml line38
your shared directory of the docker container
docker-compose.yml#L38
e.g.
If you've cloned the CG repository in /var/app/
change to /var/app:/usr/src/app
git clone
git clone
https://www.docker.com/products/docker-toolbox
Install Virtualbox if it's not installed in your computer.
http://download.virtualbox.org/virtualbox/5.0.20/VirtualBox-5.0.20-106931-OSX.dmg
install docker-compose
curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-machine start default
vi ~/.profile
export DOCKER_CERT_PATH=~/.docker/machine/machines/default/
export DOCKER_TLS_VERIFY="1"
export DOCKER_MACHINE_NAME="default"
export DOCKER_HOST="tcp://192.168.99.100:2376"
in the cloned docker-compose directory
docker-compose build
in the cloned docker-compose directory
docker-compose up
in the cloned docker-compose directory
docker-compose stop
in the cloned docker-compose directory
docker-compose start
※ Please wait about 20 seconds.
in the cloned docker-compose directory
docker-compose rm
docker ps
docker exec -it CONTAINER_ID /bin/bash