Skip to content

jepsonwu/developer_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5ddf838 · Sep 18, 2017

History

38 Commits
Nov 24, 2016
Feb 8, 2017
Feb 24, 2017
Feb 24, 2017
Feb 8, 2017
Feb 27, 2017
Feb 24, 2017
Feb 24, 2017
Feb 8, 2017
Nov 16, 2016
Sep 18, 2017
Feb 24, 2017
Feb 13, 2017
Feb 13, 2017
Feb 8, 2017
Feb 13, 2017
Feb 13, 2017

Repository files navigation

Docker tool

Summary

This is a docker build tool for developers.

System

Base on alpine.

What you'll need

  • Install docker

All of containers here

  • alpine
  • store
  • memcached
  • redis
  • mysql5.6
  • php5.6
  • php7
  • nginx

Build from exec

  • Create your project directory,and make sure it's shared on docker.

  • Exec on linux

sudo ./up -a auth -p project_path
  • Exec on mac
sudo ./up_mac -a auth -p project_path
  • Exec on windows
up.exe -a auth -p project_path
  • Add demo host,let's start.
add 127.0.0.1 demo.com >>hosts

Manual build

  • Build images,but you must edit build info before exec.
cd alpine && ./build.sh
  • Run container
docker run --name store -d -it -v  /data_path:/data jepson/store

docker run --name memcached -d jepson/memcached

docker run --name php -d -it -v  /data_path:/app --volumes-from store --link memcached jepson/php php-fpm7 -F

docker run --name nginx -d -it -p 80:80 -v  /data_path:/app --volumes-from store --link php jepson/nginx nginx "-g daemon off;"

More

To learn more about all the features of docker compose see the list of features.

Notice

docker

  • You should shared local drivers you want to be available to your containers

docker-compose.yml

  • {version: '2'} There is a space after the colon
  • { alpine:} Only is a space before option