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
- 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:
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.