asianose.blogg.se

Download php docker xdebug
Download php docker xdebug




download php docker xdebug

The Dockerfile for our PHP base image is large: FROM php:7.1.9-fpm This is why we could add in php:9000 in our nginx configuration.

download php docker xdebug

This image comes with PHP-FPM pre-configured and ready to go. Our first task is to create a custom Docker PHP 7.1 image.Īt the time of writing / recording, PHP 7.1 is the latest minor release, and PHP 7.1.9 is the latest patch release.Ĭheck on the Docker Hub PHP page for the latest for you.Īs you may have guessed based on all the PHP-FPM hi-jinx we went through in the previous video, the image we need is 7.1.9-fpm. It's extra work upfront, but it is easier this way on a day-to-day basis, I have found.

download php docker xdebug

Again, this could be Symfony, or WordPress, or some standalone PHP app, or whatever. We're going to first create a PHP 7.1 image, and then use that as the base for any PHP applications we might need. All we need to do is provide a different site configuration, and COPY that into the resulting nginx image. This way we could re-use the majority of the nginx configuration for other projects - WordPress, Node JS apps, Laravel, Rails, whatever. We covered how it's a good idea to separate nginx from PHP. However, yet again, things get a little more complicated than you might first expect. Then we saw how we could add in a nginx web server container, which would accept incoming requests and then forward them on to somewhere that really handled the PHP part of the job. Symfony2.3 Beginners Tutorial - Part 1 - Getting Setup (1080p)






Download php docker xdebug