|
1 | | -# PHP-fpm |
| 1 | +# PHP-FPM Docker Image |
| 2 | + |
2 | 3 | [](https://github.com/svasek/docker-php-fpm/actions/workflows/docker-image.yml) |
3 | 4 | [](https://hub.docker.com/r/svasek/php-fpm) |
4 | 5 | [](https://hub.docker.com/r/svasek/php-fpm) |
5 | | -[](https://microbadger.com/images/svasek/php-fpm "Get your own image badge on microbadger.com") |
6 | | -[](https://microbadger.com/images/svasek/php-fpm "Get your own version badge on microbadger.com") |
| 6 | +[](https://microbadger.com/images/svasek/php-fpm) |
| 7 | +[](https://microbadger.com/images/svasek/php-fpm) |
| 8 | + |
| 9 | +A lightweight **PHP-FPM** Docker image based on the official `php:fpm-alpine` image. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## Features |
| 14 | + |
| 15 | +- 🕑 **Timezone support** |
| 16 | + Simply set the timezone by defining the `TZ` environment variable, e.g.: |
| 17 | + |
| 18 | + ```bash |
| 19 | + TZ=Europe/Prague |
| 20 | + ``` |
| 21 | + |
| 22 | +- 📦 **Pre-installed PHP extensions** |
| 23 | + Commonly needed extensions are already installed: |
| 24 | + - `curl` |
| 25 | + - `gd` |
| 26 | + - `mysqli` |
| 27 | + - `opcache` |
| 28 | + - `pdo`, `pdo_mysql` |
| 29 | + - `gettext` |
| 30 | + - `exif` |
| 31 | + - `sockets` |
| 32 | + - `zip` |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## ⚠️ Version Notice |
| 37 | + |
| 38 | +- The `latest` and `8` tags now point to **PHP 8.4**. |
| 39 | +- The `latest` tag was moved from **7.4** to **8.2**, since PHP 7.4 has reached end of life. |
| 40 | +- If you still need PHP **7.4**, please use the `7` or `7.4` tag explicitly. |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +## Usage Example |
| 45 | + |
| 46 | +```bash |
| 47 | +docker run -e TZ=Europe/Prague svasek/php-fpm:latest |
| 48 | +``` |
7 | 49 |
|
8 | | -Docker image based on official "fpm-alpine" PHP image. |
| 50 | +--- |
9 | 51 |
|
10 | | -## Added image functions ## |
11 | | -* support for timezones: To set timezone just set environment variable like "TZ=Europe/Prague" |
| 52 | +## Links |
12 | 53 |
|
| 54 | +- 📄 [Docker Hub](https://hub.docker.com/r/svasek/php-fpm) |
| 55 | +- 🐙 [GitHub Repository](https://github.com/svasek/docker-php-fpm) |
13 | 56 |
|
14 | | -## WARNING: |
15 | | -* The tag `latest` and `8` has been moved to the PHP `8.4`. |
16 | | -* The tag `latest` has been moved from branch `7.4` to `8.2` as PHP 7.4 reached end of life. |
17 | | -* If you want to continue using PHP in version 7.4 please use tag `7` or `7.4` instead. |
| 57 | +--- |
18 | 58 |
|
| 59 | +## ✅ Tip |
19 | 60 |
|
20 | | -## Added PHP Extensions ## |
21 | | -* curl |
22 | | -* gd |
23 | | -* mysqli |
24 | | -* opcache |
25 | | -* pdo, pdo_mysql |
26 | | -* gettext |
27 | | -* exif |
28 | | -* sockets |
29 | | -* zip |
| 61 | +Keep your `docker-compose.yml` or CI/CD pipeline up to date with the desired PHP version tag to avoid unexpected upgrades. |
0 commit comments