Run docker containers

MySQL container

docker run \
    -p "3306:3306" \
    -e MYSQL_DATABASE=kisphp \
    -e MYSQL_ROOT_PASSWORD=kisphp \
    -e MYSQL_USER=kisphp \
    -e MYSQL_PASSWORD=kisphp \
    --name docker_mysql \
    -it mysql:5.7

Connection: Host: localhost Port: 3306 User: root or kisphp Password: kisphp Database Name: kisphp

Redis container

docker run -p "6379:6379" -it redis:latest --name docker_redis
Connect to localhost:6379

Elasticsearch

docker run -p "9200:9200" --rm --name docker_es -it elasticsearch:latest
Check connection: curl localhost:9200

Kibana connect to previous elastic search container

docker run \
    --rm \
    --name docker_kibana \
    -p "5601:5601" \
    -e ELASTICSEARCH_URL=http://docker_es:9200 \
    -u 0 \
    --link docker_es:docker_es \
    -it kibana:latest

NPM

docker run \
    --rm \
    -v ~/.ssh:/root/.ssh \
    -v ~/.composer:/root/.composer \
    --name docker_npm6 \
    -it node:6 \
    sh -c "npm install"