Skip to content

caioblima/php-local-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Local Docker Environment

An docker image to run PHP locally as your dev environment.

PHP versions

7.1 Apache Image --- Main Branch Always the latest PHP version

Tested on

- Linux
- Mac OS

Future releases

Separate branchs for each php version. Suggest ideas and improvments!

Run commands as follows:

Outside container

- Put your sites URL in your local hosts file.
- Put your sites *.conf on the config directory.
docker build -t caio/php71 . 
docker run -ti -p 80:80 --name php-local -v /var/www/html:/var/www/html -d caio/php71

Inside container

Enable your sites like you do in your local apache

ATTENTION!

Because this image pretend to be your work environment you need to set your file permissions manually for each project, inside the container

About

An docker image to run PHP locally as your dev environment.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors