Skip to content

aisuhua/docker-php-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Development Environment

This Dockerfile contain PHP7.2 and lastest Nginx version base on Ubuntu16.04.

Notice: It's just for test.

Build

git clone git@github.com:aisuhua/docker-php-nginx.git
cd docker-php-nginx
docker build -t phpdev .

After built the image,you can check it:

docker images

Usage

Basic usage.

docker run -d --name php72 -v /path/to/project:/www/web -p 80:80 phpdev

Get into the container

docker exec -i -t php72 /bin/bash

You can clear the container and start a new container again.

docker rm -f php72

Check the status of PHP and Nginx.

Links

About

PHP development environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published