wcasanova / docker-pfn

Docker PFN : PHP + PHP-FPM + NGINX compiled from the sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker PFN : PHP + PHP-FPM + NGINX

This repository contains a Dockerfile to build a Docker Image with PHP 7.x + PHP-FPM + Nginx compiled from the sources.

Build Status

Base Docker Image

Usage

Installation

  1. Install Docker.

  2. To create the image zokeber/docker-pfn, clone this repository, replace variables for you preference and execute the following command on the docker-pfn folder:

docker build --build-arg DOMAIN=app.domain.com --build-arg NGINX=1.10.3 --build-arg PHP=7.0.17 -t zokeber/pfn:latest .

Create and running a container

Create container:

docker create -it -p 80:80 --restart=always --name php7-fpm-nginx -h php7-fpm-nginx zokeber/pfn

Start container:

docker start php7-fpm-nginx

Connection methods:

docker exec -it php7-fpm-nginx bash

About

Docker PFN : PHP + PHP-FPM + NGINX compiled from the sources


Languages

Language:Dockerfile 60.2%Language:Shell 38.0%Language:HTML 1.2%Language:PHP 0.5%