Skip to content

Commit 9365423

Browse files
committed
Added goal of this project
1 parent 3a38277 commit 9365423

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Docker PHP-FPM 8.0 & Nginx 1.20 on Alpine Linux
2-
Example PHP-FPM 8.0 & Nginx 1.20 setup for Docker, build on [Alpine Linux](https://www.alpinelinux.org/).
3-
The image is only +/- 40MB large.
2+
Example PHP-FPM 8.0 & Nginx 1.20 container image for Docker, build on [Alpine Linux](https://www.alpinelinux.org/).
43

54
Repository: https://github.com/TrafeX/docker-php-nginx
65

@@ -9,24 +8,19 @@ Repository: https://github.com/TrafeX/docker-php-nginx
98
* Very small Docker image size (+/-40MB)
109
* Uses PHP 8.0 for better performance, lower CPU usage & memory footprint
1110
* Optimized for 100 concurrent users
12-
* Optimized to only use resources when there's traffic (by using PHP-FPM's on-demand PM)
13-
* The servers Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure
11+
* Optimized to only use resources when there's traffic (by using PHP-FPM's `on-demand` process manager)
12+
* The services Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure
1413
* The logs of all the services are redirected to the output of the Docker container (visible with `docker logs -f <container name>`)
1514
* Follows the KISS principle (Keep It Simple, Stupid) to make it easy to understand and adjust the image to your needs
1615

17-
1816
[![Docker Pulls](https://img.shields.io/docker/pulls/trafex/php-nginx.svg)](https://hub.docker.com/r/trafex/php-nginx/)
1917
![nginx 1.18.0](https://img.shields.io/badge/nginx-1.20-brightgreen.svg)
2018
![php 8.0](https://img.shields.io/badge/php-8.0-brightgreen.svg)
2119
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)
2220

23-
### Docker Hub repository name change
24-
Since we switched to PHP8 the repository name [trafex/alpine-nginx-php7](https://hub.docker.com/r/trafex/alpine-nginx-php7) didn't make sense anymore.
25-
Because you can't change the name of the repository on Docker Hub I created a new one.
26-
27-
From now on this image can be pulled from Docker Hub under the name [trafex/php-nginx](https://hub.docker.com/r/trafex/php-nginx).
28-
29-
The old repository will still be available and kept up to date with [trafex/php-nginx](https://hub.docker.com/r/trafex/php-nginx).
21+
## Goal of this project
22+
The goal of this container image is to provide an example for running Nginx and PHP-FPM in a container which follows
23+
the best practices and is easy to understand and modify to your needs.
3024

3125
## Usage
3226

@@ -40,6 +34,12 @@ Or mount your own code to be served by PHP-FPM & Nginx
4034

4135
docker run -p 80:8080 -v ~/my-codebase:/var/www/html trafex/php-nginx
4236

37+
### Docker Hub repository name change
38+
Since we switched to PHP8 the repository name [trafex/alpine-nginx-php7](https://hub.docker.com/r/trafex/alpine-nginx-php7) didn't make sense anymore.
39+
Because you can't change the name of the repository on Docker Hub I created a new one.
40+
41+
From now on this image can be pulled from Docker Hub under the name [trafex/php-nginx](https://hub.docker.com/r/trafex/php-nginx).
42+
4343
## Configuration
4444
In [config/](config/) you'll find the default configuration files for Nginx, PHP and PHP-FPM.
4545
If you want to extend or customize that you can do so by mounting a configuration file in the correct folder;

0 commit comments

Comments
 (0)