Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

adrian7/docker-nginx-fpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Nginx - PHP-FPM Image Builder

Run ./build.sh to build your images.

Parameters:

  • name:tag the name and tag to use for the resulting docker image

Options:

  • --env builds the image with configuration stored in config-{env} folder
  • --php selects php version (builds from the {version}-fpm-alpine base).

Example:

./build.sh devimage:latest --env dev --php 7.1.8

Then you can base your containers on the new built image:

docker run -d -p 31287:80 --name dev-container devimage:latest

Or base your images on it (Dockerfile):

FROM devimage:latest

ENV SERVER_ROOT /var/www/public
ENV APP_ENV dev

EXPOSE 80

Available PHP versions:

  • 7.2.0beta2
  • 7.1.8 (default)
  • 7.0.22
  • 5.6.31

For a complete list see https://store.docker.com/images/php