Nginx & PHP 7 web server.
Using the Laravel installer you can get up and running with a Laravel application inside Docker in minutes.
- Create a new Laravel application
$ laravel new testapp - Change to the applications directory
$ cd testapp - Start the container and attach the application.
$ docker run -d -p 4488:80 --name=testapp -v $PWD:/var/www webserver - Visit the Docker container URL like http://0.0.0.0:4488. Profit!
Here are some configurable environment values.
WEBROOT– Path to the web root. Default:/var/wwwPRODUCTION– Is this a production environment. Default:0PHP_MEMORY_LIMIT- PHP memory limit in megabytes. Example:100PHP_POST_MAX_SIZE- PHP POST maximum size in megabytes. Example:50PHP_UPLOAD_MAX_FILESIZE- PHP upload maximum file size in megabytes. Example:100PHP_MAX_EXECUTION_TIME- PHP maximum execution time in seconds. Example:30COMPOSER_DIRECTORY- Path to where yourcomposer.jsonfile lives. Example:/var/wwwLARAVEL- Is this a Laravel application. If you set this to1then set your composer directory too. Default0RUN_MIGRATIONS- Run Laravel migrations. (Will only work IF LARAVEL = 1). Default:0