A Simple Docker setup for PHP applications using PHP7-FPM and Nginx
-
Open up http://play-with-docker.com on your browser
-
Checkout the repository
- Run Docker Compose CLI
- Run
docker-compose up
- Navigate to the below URL
- Navigate to localhost:8080
That's it! You have your local PHP setup using Docker
This displays an image of minions on the web browser.
- Clone this simple PHP Web Page under the dockerised-php folder
- Remove the code folder and copy all contents under new code folder
- rm -fr code
- mv simple-php-website code
- Restart the Docker Compose
- docker-compose restart
- Navigate to the browser again. You will see Simple PHP Webpage