HHVM - Nginx - Laravel
This image is based off of vinelab/base
so all of the features are available here as well.
- In your laravel project directory:
docker run -p -d 80:80 -v $(pwd):/var/www/app vinelab/hhvm
http://localhostand you should get to your app
Composer is installed in
/usr/local/bin/composer so you can use it right away.
To add a virtual host configuration file to nginx mount a file with
/etc/nginx/conf.d/when running your container as such:
docker run -d -p 80:80 -v /path/to/host.conf:/etc/nginx/conf.d/host.conf vinelab/hhvm
The default configuration file is
/var/www/app/publicas document root.
If you'd like to alter the base nginx configuration override the file at
/etc/nginx/nginx.confbut make sure to have
daemon offso that
supervisor can keep an eye on your nginx process:
docker run -d -p 80:80 /path/to/nginx.conf:/etc/nginx/nginx.conf vinelab/hhvm