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 creativitykills/nginx-php-server - Visit the Docker container URL like http://0.0.0.0:4488. Profit!
Here are some args
NGINX_HTTP_PORT- HTTP port. Default:80.NGINX_HTTPS_PORT- HTTPS port. Default:443.PHP_VERSION- The PHP version to install. Supports:7.3. Default:7.3.ALPINE_VERSION- The Alpine version. Supports:3.9. Default:3.9.
Here are some configurable environment values.
WEBROOT– Path to the web root. Default:/var/wwwWEBROOT_PUBLIC– Path to the web root. Default:/var/www/publicCOMPOSER_DIRECTORY- Path to thecomposer.jsoncontaining directory. Default:/var/www.COMPOSER_INSTALL_ON_BUILD- Shouldcomposer installrun on build. Default:0.LARAVEL_APP- Is this a Laravel application. Default0.RUN_LARAVEL_SCHEDULER- Should the Laravel scheduler command run. Only works ifLARAVEL_APPis1. Default:0.RUN_LARAVEL_MIGRATIONS_ON_BUILD- Should the migrate command run during build. Only works ifLARAVEL_APPis1. Default:0.PRODUCTION– Is this a production environment. Default:0PHP_MEMORY_LIMIT- PHP memory limit. Default:128MPHP_POST_MAX_SIZE- Maximum POST size. Default:50MPHP_UPLOAD_MAX_FILESIZE- Maximum file upload file. Default:10M.