This is a Dockerfile to build a debian based container image running nginx and php-fpm 7.3.x / 7.2.x / 7.1.x / 7.0.x & Composer.
Docker Tag | GitHub Release | Nginx Version | PHP Version | Debian Version |
---|---|---|---|---|
latest | master Branch | 1.17.5 | 7.3.11 | buster |
php73 | php73 Branch | 1.17.5 | 7.3.11 | buster |
php72 | php72 Branch | 1.17.5 | 7.2.24 | buster |
php71 | php71 Branch | 1.17.5 | 7.1.33 | buster |
php70 | php70 Branch | 1.17.5 | 7.0.33 | buster |
To build from source you need to clone the git repo and run docker build:
$ git clone https://github.com/wyveo/nginx-php-fpm.git
$ cd nginx-php-fpm
followed by
$ docker build -t nginx-php-fpm:latest . # PHP 7.3.x
or
$ docker build -t nginx-php-fpm:php73 . # PHP 7.3.x
$ docker pull wyveo/nginx-php-fpm:latest
To run the container:
$ sudo docker run -d wyveo/nginx-php-fpm:latest
Default web root:
/usr/share/nginx/html