Public Repository

Last pushed: 2 years ago
Short Description
A debian jessie image running nginx with php7
Full Description

This is a pretty simple implementation of a Debian Jessie docker image that has nginx and php7 installed.

Nginx expects to serve the application from /var/www/app/public so there are a couple of assumptions in place

  1. Your project directory structure looks similar to:
\path\to\project 
  composer.json
  \src
    \_application
  \public
    \_index.php
  \vendor

This being the case, the command to serve your project would be

docker run --detach -p 8000:80 \ 
    -v /path/to/project:/var/www/app vanqard/nginxphp7

Depending upon your host OS, your project should now either be available at:

http://localhost:8000/

or

http://192.168.99.100:8000/

The latter being for images run in a virtualbox container or similar. Use the command docker ip $container to locate the actual ip address being used.

Docker Pull Command
Owner
vanqard

Comments (0)