├── README.md ├── code └── index.php ├── docker-compose.yml └── site.conf /README.md: -------------------------------------------------------------------------------- 1 | The Docker setup for PHP applications using PHP7-FPM and Nginx described in http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/ 2 | 3 | ## Instructions 4 | 1. Checkout the repository 5 | * ~~Create a record in your `hosts` file to point `php-docker.local` to your Docker environment~~ 6 | * Run `docker-compose up` 7 | * ~~Navigate to php-docker.local:8080 in a browser~~ 8 | * Navigate to localhost:8080 9 | 10 | That's it! You have your local PHP setup using Docker 11 | 12 | *Example of activated PHP logging* - https://github.com/mikechernev/dockerised-php/tree/feature/log-to-stdout 13 | -------------------------------------------------------------------------------- /code/index.php: -------------------------------------------------------------------------------- 1 |