Skip to content

trent112/docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker

What is this?

This is the docker environment for PHP developers

  • php
  • nginx
  • mysql
  • redis
  • composer

from laradocker

CONFIG

  • need modify file docker-compose.yml at line 25
  22 drivers:
  23   image: tianon/true
  24   volumes:
  25     - YOUR-LOCAL-DIRECTORY:/var/www/html
  • param YOUR-LOCAL-DIRECTORY egc:\www

USE

  • Download docker or docker for windows
  • Shared Drivers
  • Config Daemon Registry mirrors eg:daocloud
  • Enter this directory
  • docker-compose up -d lnmp
  • #####Please enjoy it

SKILL ON WINDWOS

Function DockerExec($name){
    docker exec -it  $(docker ps | grep $name| awk '{print $1}')  /bin/bash
}
Function composer {
    docker run --rm --interactive --tty  --volume ${PWD}:/app composer-china  composer $args
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nginx 100.0%