Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neoighodaro/docker-webserver
Webserver (Nginx + PHP 7) running inside a Docker container.
https://github.com/neoighodaro/docker-webserver
Last synced: 20 days ago
JSON representation
Webserver (Nginx + PHP 7) running inside a Docker container.
- Host: GitHub
- URL: https://github.com/neoighodaro/docker-webserver
- Owner: neoighodaro
- License: mit
- Created: 2017-01-28T10:04:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T18:53:14.000Z (over 2 years ago)
- Last Synced: 2024-10-13T12:27:22.146Z (about 1 month ago)
- Language: Shell
- Size: 65.4 KB
- Stars: 100
- Watchers: 6
- Forks: 71
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Web Server
Nginx & PHP 7 web server.
# Laravel Application - Quick Run
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](http://0.0.0.0:4488). Profit!### Args
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`.### Environment Variables
Here are some configurable environment values.
- `WEBROOT` – Path to the web root. Default: `/var/www`
- `WEBROOT_PUBLIC` – Path to the web root. Default: `/var/www/public`
- `COMPOSER_DIRECTORY` - Path to the `composer.json` containing directory. Default: `/var/www`.
- `COMPOSER_INSTALL_ON_BUILD` - Should `composer install` run on build. Default: `0`.
- `LARAVEL_APP` - Is this a Laravel application. Default `0`.
- `RUN_LARAVEL_SCHEDULER` - Should the Laravel scheduler command run. Only works if `LARAVEL_APP` is `1`. Default: `0`.
- `RUN_LARAVEL_MIGRATIONS_ON_BUILD` - Should the migrate command run during build. Only works if `LARAVEL_APP` is `1`. Default: `0`.
- `PRODUCTION` – Is this a production environment. Default: `0`
- `PHP_MEMORY_LIMIT` - PHP memory limit. Default: `128M`
- `PHP_POST_MAX_SIZE` - Maximum POST size. Default: `50M`
- `PHP_UPLOAD_MAX_FILESIZE` - Maximum file upload file. Default: `10M`.