Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kool-dev/docker-nginx
Docker Images for NGINX
https://github.com/kool-dev/docker-nginx
docker hacktoberfest kool kool-dev kooldev nginx php
Last synced: about 2 months ago
JSON representation
Docker Images for NGINX
- Host: GitHub
- URL: https://github.com/kool-dev/docker-nginx
- Owner: kool-dev
- License: mit
- Created: 2020-07-07T20:47:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T23:57:29.000Z (9 months ago)
- Last Synced: 2024-04-25T00:55:16.966Z (9 months ago)
- Topics: docker, hacktoberfest, kool, kool-dev, kooldev, nginx, php
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/kooldev/nginx
- Size: 67.4 KB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![CI/CD](https://github.com/kool-dev/docker-nginx/workflows/CI/CD/badge.svg)
## Description
Minimal [NGINX](https://www.nginx.com/) Docker images. It's use is intended for [kool.dev](https://github.com/kool-dev/kool), but can fit in any other NGINX use-case.
## Available Tags
- [php](https://github.com/kool-dev/docker-nginx/blob/master/php/Dockerfile)
- [static](https://github.com/kool-dev/docker-nginx/blob/master/static/Dockerfile)## Environment Variables
Variable | Default Value | Description
--- | --- | ---
**LISTEN** | `80` | Changes the PORT address
**ROOT** | `/app/public` | Changes NGINX root directive
**CLIENT_MAX_BODY_SIZE** | `25M` | Changes maximum allowed size of the client request body
**PHP_FPM** | `app:9000` | Changes the address of a FastCGI server
**FASTCGI_READ_TIMEOUT** | `60s` | Changes a timeout for reading a response from the FastCGI server
**FASTCGI_BUFFERS** | `8 8k` | Changes the number and size of the buffers used for reading a response
**FASTCGI_BUFFER_SIZE** | `16k` | Changes the size of the buffer used for reading the first part of the response received### php
Variable | Default Value | Description
--- | --- | ---
**INDEX** | `index.php` | Changes the index directive### static
Variable | Default Value | Description
--- | --- | ---
**INDEX** | `index.html` | Changes the index directive## Usage
With `docker run`:
```sh
docker run -it --rm kooldev/nginx:php nginx -v
```With environment variables:
```sh
docker run -it --rm -e LISTEN=8080 kooldev/nginx:php nginx -v
```With `docker-compose.yml`:
```yaml
app:
image: kooldev/nginx:php
environment:
LISTEN: "8080"
```## Contributing
### Dependencies
You should change `fwd-template.json` and `template` folder.
After any changes, we just need to run `kool run template` (you need [kool](https://github.com/kool-dev/kool)) to compile the template and generate all version folder/files.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.