Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkfabrik/docker-php-laravel-nginx
NGINX Docker container for Laravel-based projects
https://github.com/sparkfabrik/docker-php-laravel-nginx
Last synced: 23 days ago
JSON representation
NGINX Docker container for Laravel-based projects
- Host: GitHub
- URL: https://github.com/sparkfabrik/docker-php-laravel-nginx
- Owner: sparkfabrik
- Created: 2019-12-09T10:21:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-25T10:42:06.000Z (over 3 years ago)
- Last Synced: 2024-11-08T13:09:29.851Z (3 months ago)
- Language: Shell
- Size: 40 KB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-php-laravel-nginx
NGINX Docker container for Laravel-based projects
This container works in pair with a PHP upstream server (such as https://github.com/sparkfabrik/docker-php-base-image) to proxy requests, serving static assets, if any.
## env variables
The entrypoint file contains a list of environment variables that will be replaced in all NGINX configuration files.
* `PHP_HOST`: the php host (default: `php`)
* `PHP_PORT`: the php port (default: `9000`)
* `NGINX_PHP_READ_TIMEOUT`: the php timeout (default: `900`)
* `NGINX_DEFAULT_SERVER_NAME`: the server name (default: `laravel`)
* `NGINX_DEFAULT_ROOT`: the server root (default: `/var/www/`)
* `NGINX_HTTPSREDIRECT`: enable/disable https redirect (default: `0`)
* `NGINX_SUBFOLDER`: include nginx configuration files from subfolders (default: `0`)
* `NGINX_SUBFOLDER_ESCAPED`: (default: `0`)
* `NGINX_OSB_BUCKET`: needed when using s3fs to store static assets; contains the remote bucket URL to proxy aggregated ccs/js relative urls
* `NGINX_OSB_RESOLVER`: needed when using s3fs to store static assets; contains the host resolver that nginx uses to resolve the remote bucket url (default: `8.8.8.8`)
* `PUBLIC_FILES_PATH`: the path for Laravel's public files storage (default: `storage/app/public`)
* `NGINX_CACHE_CONTROL_HEADER`: caching policy for public files (default: `public,max-age=3600`)