A PHP application container, with the mongo extension installed.
latest
You can either mount code into the container and run it, or use this image as base for an application image.
docker run -d -p [host port]:80 -v /path/to/code:/code/public vinelab/nginx-php
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
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
By default 443
and 80
are exposed
This package is distributed under the MIT License (see LICENSE) file distributed with this package.