Skip to content

Commit 04e6f0c

Browse files
committed
Upgrade to nginx 1.29.3, PHP 8.5.0, PHPUnit 12.5.1, Xdebug 3.5.0, redis 8.4.0 and MariaDB 12.1.2
1 parent 7acbfb0 commit 04e6f0c

File tree

5 files changed

+62
-52
lines changed

5 files changed

+62
-52
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Docker compose PHP 8.4.13, Xdebug 3.4.6, Nginx 1.29.1, Redis 8.2.2 and MariaDB 12.0.2
1+
# Docker compose PHP 8.5.0, Xdebug 3.5.0, Nginx 1.29.3, Redis 8.4.0 and MariaDB 12.1.2
22

33
![docker](https://img.shields.io/badge/Docker-compose-brightgreen.svg)
4-
![nginx](https://img.shields.io/badge/nginx-1.29.1-brightgreen.svg)
5-
![php](https://img.shields.io/badge/PHP_FPM-8.4.13-brightgreen.svg)
6-
![phpunit](https://img.shields.io/badge/PHPUnit-11.4.3-brightgreen.svg)
7-
![xdebug](https://img.shields.io/badge/Xdebug-3.4.6-brightgreen.svg)
8-
![redis](https://img.shields.io/badge/Redis-8.2.2-brightgreen.svg)
9-
![mariadb](https://img.shields.io/badge/MariaDB-12.0.2-brightgreen.svg)
4+
![nginx](https://img.shields.io/badge/nginx-1.29.3-brightgreen.svg)
5+
![php](https://img.shields.io/badge/PHP_FPM-8.5.0-brightgreen.svg)
6+
![phpunit](https://img.shields.io/badge/PHPUnit-12.5.1-brightgreen.svg)
7+
![xdebug](https://img.shields.io/badge/Xdebug-3.5.0-brightgreen.svg)
8+
![redis](https://img.shields.io/badge/Redis-8.4.0-brightgreen.svg)
9+
![mariadb](https://img.shields.io/badge/MariaDB-12.1.2-brightgreen.svg)
1010

1111
# Goal of this project
1212

@@ -15,13 +15,13 @@ The primary goal of this project is to create a streamlined and efficient develo
1515
# Services
1616

1717
* Easy setup with [docker compose](https://docs.docker.com/compose/) and [Dockerfile](https://docs.docker.com/engine/reference/builder/) under usage from [Docker](https://www.docker.com)
18-
* Uses [PHP 8.4.13](https://www.php.net) for better performance, lower CPU and memory usage
18+
* Uses [PHP 8.5.0](https://www.php.net) for better performance, lower CPU and memory usage
1919
* And [composer the dependency manager for PHP](https://getcomposer.org) to start easy your project
20-
* Built on the lightweight [nginx 1.29.1](https://nginx.org) webserver
21-
* Debugging with [Xdebug 3.4.6](https://xdebug.org)
22-
* Testing with [PHPUnit 11.4.3](https://phpunit.de) to ensure code quality and reliability
23-
* [Redis 8.2.2](https://redis.io) as session storage, database, cache, streaming engine, and message broker
24-
* Database storage with [MariaDB 12.0.2](https://mariadb.org)
20+
* Built on the lightweight [nginx 1.29.3](https://nginx.org) webserver
21+
* Debugging with [Xdebug 3.5.0](https://xdebug.org)
22+
* Testing with [PHPUnit 12.5.1](https://phpunit.de) to ensure code quality and reliability
23+
* [Redis 8.4.0](https://redis.io) as session storage, database, cache, streaming engine, and message broker
24+
* Database storage with [MariaDB 12.1.2](https://mariadb.org)
2525

2626
## Setup Instructions
2727

compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
nginx:
3-
image: "nginx:1.29.1-alpine"
3+
image: "nginx:1.29.3-alpine"
44
restart: always
55
working_dir: /app
66
links:
@@ -24,12 +24,12 @@ services:
2424
XDEBUG_MODE: "coverage"
2525

2626
redis:
27-
image: "redis:8.2.2-alpine"
27+
image: "redis:8.4.0-alpine"
2828
environment:
2929
ALLOW_EMPTY_PASSWORD: "yes"
3030

3131
mariadb:
32-
image: "mariadb:12.0.2"
32+
image: "mariadb:12.1.2"
3333
restart: always
3434
working_dir: /app
3535
volumes:

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"require": {
3-
"php": ">=8.4"
3+
"php": ">=8.5"
44
},
55
"require-dev": {
6-
"phpunit/phpunit": "12.4.0"
6+
"phpunit/phpunit": "^12.5"
77
},
88
"autoload": {
99
"psr-4": {

composer.lock

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/php-fpm/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.4.13-fpm
1+
FROM php:8.5.0-fpm
22
WORKDIR "/app"
33

44
# Update
@@ -17,7 +17,17 @@ RUN pecl install -o -f redis && docker-php-ext-enable redis
1717
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
1818

1919
# Install xdebug
20-
RUN pecl install xdebug-3.4.6 && docker-php-ext-enable xdebug
20+
RUN apt-get update && apt-get install -y wget \
21+
&& wget https://xdebug.org/files/xdebug-3.5.0.tgz \
22+
&& tar -xvzf xdebug-3.5.0.tgz \
23+
&& cd xdebug-3.5.0 \
24+
&& phpize \
25+
&& ./configure \
26+
&& make \
27+
&& make install \
28+
&& docker-php-ext-enable xdebug \
29+
&& cd .. \
30+
&& rm -rf xdebug-3.5.0 xdebug-3.5.0.tgz
2131

2232
# Cleanup
2333
RUN apt-get clean

0 commit comments

Comments
 (0)