A docker image to quick deploy php7 applications with nginx based on debian
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See install for notes on how to deploy the project on a live system.
install docker
Clone this repository:
git clone https://github.com/mcezzare/dockerphp7-nginx.git
Enter the docker-build folder
./docker_build.sh
And on finish
./docker_compose_run.sh
Open your favorite Browser and navigate to http://localhost:8080/ and you'll see phpinfo()
composer is installed, create a task test to invoke phpunit ;)
Your root app folder is public, where you can use the index.php for bootstrap your app or a dispatcher you may prefer. OBS: if you don't want to use a dispatcher or index.php, remove the configuration with the rewrite rule at default.conf
location / {
try_files $uri /index.php$is_args$args;
index index.php ;
}
Sublime text : rulez ;)
soon
soon
- Mario Cezzare - Initial work -
- Personal web site
soon...
I was tired of using php docker images with strange configurations, and i don't want to leave Infrastructure configurations inside the applications folder, so it's only up the container on terminal inside the docker_build folder and start to build a pretty app ;)