Docker image with php using nginx and php-fpm
docker pull icewind1991/php-nginx
Serving your code
By default nginx is configured to server code from
/var/www/html, you can either use a docker volume to place your code there or create a new image with the added code.
The following php extensions are installed and enabled by default:
You can add additional php extensions by using the
docker-php-ext-install scripts. (see also the official docker php docs)
You can customize the nginx config without having to overwrite the main nginx config by adding a custom
This file will be included in the
server block of the nginx config.