Skip to content

xf1688/docker-ecshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-ecshop

docker run ecshop

only modify your code file path

dockerfile in nginx-php folder

How to use this image

First:

In the root directory of the Dockerfile folder run the command such as : docker build -t wilf/phpfpm-nginx . This command will build a image. -t define the name of the image,you can write your name,Don't forget .

Single Site (Recommended)

When build done,run this command start container:

 docker run --name nginx-phpfpm -d -p 127.0.0.1:10001:80  -v /Users/wilf/Documents/php/code:/var/www/html wilf/phpfpm-nginx

nginx-phpfpm is the container name ,wilf/phpfpm-nginx as noted above,/Users/wilf/Documents/php/code is your local code, when run done visit 127.0.0.1:10001 you can see your project have run well