Sign inSign up

vinelab/nginx-php

By vinelab

Updated over 2 years ago

A PHP application image with NGINX as a web server monitored by supervisord

Image
1

10K+

vinelab/nginx-php repository overview

Nginx • PHP-FPM

A PHP application container, with the mongo extension installed.

Tags

  • latest

Usage

You can either mount code into the container and run it, or use this image as base for an application image.

Mounting Code
docker run -d -p [host port]:80 -v /path/to/code:/code/public vinelab/nginx-php
With Laravel

Mounting Laravel code has to happen to /code instead of /code/public since Laravel incorporates a /public directory.

docker run -d -p [host port]:80 -v /path/to/laravel-code:/code vinelab/nginx-php
As Base Image

Using this image as base image is as simple as creating a Dockerfile in the application root with the following content:

FROM vinelab/nginx-php

MAINTAINER You Name <your@email>

COPY . /code

Exposing Ports

By default 443 and 80 are exposed

License

This package is distributed under the MIT License (see LICENSE) file distributed with this package.

Tag summary

Content type

Image

Digest

Size

177.5 MB

Last updated

almost 6 years ago

docker pull vinelab/nginx-php