Skip to content

Commit 5ff049b

Browse files
committed
Update documentation and Dockerfiles to support PHP 8.5, including changes to image references across various guides and examples. Adjusted configurations in multiple files to reflect the new version.
1 parent 8c39a8f commit 5ff049b

File tree

20 files changed

+58
-58
lines changed

20 files changed

+58
-58
lines changed

docs/content/docs/1.getting-started/2.container-basics.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ There are some important terms to understand when working with containers:
1818
| Term | Definition |
1919
|------|------------|
2020
| Container | A running instance of an image. |
21-
| Image | A template for a container to start with (ie. `serversideup/php:8.4-frankenphp`). |
22-
| Tag | A specific version of an image (ie. `8.4-frankenphp`). |
21+
| Image | A template for a container to start with (ie. `serversideup/php:8.5-frankenphp`). |
22+
| Tag | A specific version of an image (ie. `8.5-frankenphp`). |
2323
| Registry | A repository of images. This is where users can pull images from to start a container. This can be places like [Docker Hub](https://hub.docker.com/r/serversideup/php) or [GitHub Packages](https://github.com/serversideup/docker-php/pkgs/container/php). |
2424
| Volume | A directory on your host machine that is mounted into a container. This allows you to share files between your host machine and the container. |
2525
| Port | Ports are virtual numbers organizing network data traffic, directing it to the correct application on a device. If you want to expose traffic to work with `http://localhost`, you would map port `80` on your host machine to port `8080` on the container. |
@@ -57,9 +57,9 @@ So although we're going to show you best practices with Docker, this means you'l
5757
If you followed our [installation guide](/docs/getting-started/installation), you've already run containers and seen them in action. Let's break down what actually happened when you ran `docker compose up`.
5858

5959
### Images vs Containers
60-
Think of an **image** as a blueprint and a **container** as the actual running instance of that blueprint. When you specified `image: serversideup/php:8.4-fpm-nginx` in your `compose.yml`, you told Docker to:
60+
Think of an **image** as a blueprint and a **container** as the actual running instance of that blueprint. When you specified `image: serversideup/php:8.5-fpm-nginx` in your `compose.yml`, you told Docker to:
6161

62-
1. Download the `serversideup/php:8.4-fpm-nginx` image (the blueprint)
62+
1. Download the `serversideup/php:8.5-fpm-nginx` image (the blueprint)
6363
2. Create a container from that image (the running instance)
6464
3. Start the container with your specified configuration
6565

@@ -84,7 +84,7 @@ In your `compose.yml`, when you define a service called `php`, you're telling Do
8484
```yml [compose.yml] {2}
8585
services:
8686
php:
87-
image: serversideup/php:8.4-fpm-nginx
87+
image: serversideup/php:8.5-fpm-nginx
8888
ports:
8989
- 80:8080
9090
```

docs/content/docs/2.image-variations/fpm-apache.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Here are a few examples to help you get started with the FPM-Apache variation.
7979

8080
### Docker CLI
8181
```bash [Terminal]
82-
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.4-fpm-apache
82+
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.5-fpm-apache
8383
```
8484

8585
Your application will be available at `http://localhost`. The default document root is `/var/www/html/public`.
@@ -94,7 +94,7 @@ This is the recommended approach for local development and production deployment
9494
```yml [compose.yml]
9595
services:
9696
php:
97-
image: serversideup/php:8.4-fpm-apache
97+
image: serversideup/php:8.5-fpm-apache
9898
ports:
9999
- "80:8080"
100100
- "443:8443"
@@ -115,7 +115,7 @@ The FPM-Apache variation is excellent for WordPress hosting:
115115
```yml [compose.yml]
116116
services:
117117
wordpress:
118-
image: serversideup/php:8.4-fpm-apache
118+
image: serversideup/php:8.5-fpm-apache
119119
ports:
120120
- "80:8080"
121121
- "443:8443"
@@ -163,7 +163,7 @@ The FPM-Apache variation includes built-in SSL support with self-signed certific
163163
```yml [compose.yml]
164164
services:
165165
php:
166-
image: serversideup/php:8.4-fpm-apache
166+
image: serversideup/php:8.5-fpm-apache
167167
ports:
168168
- "8080:8080"
169169
- "8443:8443"
@@ -184,7 +184,7 @@ For production, use your own SSL certificates:
184184
```yml [compose.yml]
185185
services:
186186
php:
187-
image: serversideup/php:8.4-fpm-apache
187+
image: serversideup/php:8.5-fpm-apache
188188
ports:
189189
- "443:8443"
190190
volumes:

docs/content/docs/2.image-variations/fpm-nginx.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Here are a few examples to help you get started with the FPM-NGINX variation.
7575

7676
### Docker CLI
7777
```bash [Terminal]
78-
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.4-fpm-nginx
78+
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.5-fpm-nginx
7979
```
8080

8181
Your application will be available at `http://localhost`. The default webroot is `/var/www/html/public`.
@@ -91,7 +91,7 @@ This is the recommended approach for local development and production deployment
9191
```yml [compose.yml]
9292
services:
9393
php:
94-
image: serversideup/php:8.4-fpm-nginx
94+
image: serversideup/php:8.5-fpm-nginx
9595
ports:
9696
- "80:8080"
9797
volumes:
@@ -110,7 +110,7 @@ The FPM-NGINX variation is perfectly suited for Laravel applications:
110110
```yml [compose.yml]
111111
services:
112112
php:
113-
image: serversideup/php:8.4-fpm-nginx
113+
image: serversideup/php:8.5-fpm-nginx
114114
ports:
115115
- "80:8080"
116116
- "443:8443"
@@ -163,7 +163,7 @@ The FPM-NGINX variation includes built-in SSL support with self-signed certifica
163163
```yml [compose.yml]
164164
services:
165165
php:
166-
image: serversideup/php:8.4-fpm-nginx
166+
image: serversideup/php:8.5-fpm-nginx
167167
ports:
168168
- "80:8080"
169169
- "443:8443"
@@ -184,7 +184,7 @@ For production, use your own SSL certificates:
184184
```yml [compose.yml]
185185
services:
186186
php:
187-
image: serversideup/php:8.4-fpm-nginx
187+
image: serversideup/php:8.5-fpm-nginx
188188
ports:
189189
- "443:8443"
190190
volumes:
@@ -249,7 +249,7 @@ If you're running an application in production, you'll likely want to package yo
249249
services:
250250
php:
251251
# You'll likely replace this with your own custom image name
252-
image: serversideup/php:8.4-fpm-nginx
252+
image: serversideup/php:8.5-fpm-nginx
253253
environment:
254254
# Enable OPcache for production
255255
PHP_OPCACHE_ENABLE: "1"
@@ -264,7 +264,7 @@ services:
264264
services:
265265
php:
266266
# You'll likely replace this with your own custom image name
267-
image: serversideup/php:8.4-fpm-nginx
267+
image: serversideup/php:8.5-fpm-nginx
268268
environment:
269269
# NGINX Settings
270270
NGINX_CLIENT_MAX_BODY_SIZE: "200M"
@@ -300,7 +300,7 @@ You can add custom NGINX server configuration by mounting files:
300300
```yml [compose.yml]
301301
services:
302302
php:
303-
image: serversideup/php:8.4-fpm-nginx
303+
image: serversideup/php:8.5-fpm-nginx
304304
ports:
305305
- "80:8080"
306306
volumes:

docs/content/docs/2.image-variations/fpm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ This example shows a common setup with PHP-FPM in one container and NGINX in ano
6767
```yml [compose.yml]
6868
services:
6969
php:
70-
image: serversideup/php:8.4-fpm
70+
image: serversideup/php:8.5-fpm
7171
volumes:
7272
- ./:/var/www/html
7373

@@ -119,7 +119,7 @@ The `php-fpm-healthcheck` script can also monitor specific metrics like accepted
119119
```yml [compose.yml]{7-10}
120120
services:
121121
php:
122-
image: serversideup/php:8.4-fpm
122+
image: serversideup/php:8.5-fpm
123123
volumes:
124124
- ./:/var/www/html
125125
healthcheck:
@@ -154,7 +154,7 @@ The FPM variation gives you fine-grained control over PHP process management. He
154154
```yml [compose.yml]
155155
services:
156156
php:
157-
image: serversideup/php:8.4-fpm
157+
image: serversideup/php:8.5-fpm
158158
environment:
159159
PHP_FPM_PM_CONTROL: "static"
160160
PHP_FPM_PM_MAX_CHILDREN: "50"
@@ -165,7 +165,7 @@ services:
165165
```yml [compose.yml]
166166
services:
167167
php:
168-
image: serversideup/php:8.4-fpm
168+
image: serversideup/php:8.5-fpm
169169
environment:
170170
PHP_FPM_PM_CONTROL: "ondemand"
171171
PHP_FPM_PM_MAX_CHILDREN: "10"

docs/content/docs/2.image-variations/frankenphp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Health checks are critical for zero-downtime deployments, but the official image
8585
```yml [compose.yml]
8686
services:
8787
php:
88-
image: serversideup/php:8.4-frankenphp
88+
image: serversideup/php:8.5-frankenphp
8989
environment:
9090
# Use Laravel's built-in health check
9191
HEALTHCHECK_PATH: /up
@@ -222,7 +222,7 @@ Here are a few examples to help you get started with the FrankenPHP variation.
222222
### Docker CLI
223223

224224
```bash [Terminal]
225-
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.4-frankenphp
225+
docker run -p 80:8080 -v $(pwd):/var/www/html/public serversideup/php:8.5-frankenphp
226226
```
227227

228228
Your application will be available at `http://localhost`. The default webroot is `/var/www/html/public`.
@@ -240,7 +240,7 @@ Don't forget to create a `public` directory and put your PHP code in there.
240240
services:
241241
php:
242242
# Choose our PHP version and variation
243-
image: serversideup/php:8.4-frankenphp
243+
image: serversideup/php:8.5-frankenphp
244244
# Expose and map HTTP and HTTPS ports
245245
ports:
246246
- 80:8080
@@ -292,7 +292,7 @@ See our [Configuring SSL](/docs/deployment-and-production/configuring-ssl) guide
292292
```yml [compose.yml]
293293
services:
294294
php:
295-
image: serversideup/php:8.4-frankenphp
295+
image: serversideup/php:8.5-frankenphp
296296
ports:
297297
- "80:8080"
298298
- "443:8443"
@@ -315,7 +315,7 @@ For local development, use the `SSL_MODE` environment variable:
315315
```yml [compose.yml]
316316
services:
317317
php:
318-
image: serversideup/php:8.4-frankenphp
318+
image: serversideup/php:8.5-frankenphp
319319
ports:
320320
- "80:8080"
321321
- "443:8443"
@@ -389,7 +389,7 @@ There are a few areas where you can use environment variables to customize your
389389
```yml [compose.yml]
390390
services:
391391
php:
392-
image: serversideup/php:8.4-frankenphp
392+
image: serversideup/php:8.5-frankenphp
393393
environment:
394394
CADDY_SERVER_EXTRA_DIRECTIVES: |
395395
# Add custom headers

docs/content/docs/3.framework-guides/1.laravel/octane.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ By default, FrankenPHP runs in classic mode. Your compose file might look someth
3636
```yml [compose.yml]
3737
services:
3838
php:
39-
image: serversideup/php:8.4-frankenphp
39+
image: serversideup/php:8.5-frankenphp
4040
ports:
4141
- "80:8080"
4242
volumes:
@@ -78,7 +78,7 @@ Laravel Octane provides its own Caddyfile. This may cause some of the serverside
7878
```yml [compose.yml]{8-13}
7979
services:
8080
php:
81-
image: serversideup/php:8.4-frankenphp
81+
image: serversideup/php:8.5-frankenphp
8282
ports:
8383
- "80:8080"
8484
volumes:

docs/content/docs/3.framework-guides/2.wordpress/4.using-wordpress-with-docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Here's a proven WordPress stack running on Docker Swarm that balances containeri
9191

9292
**Infrastructure components:**
9393
1. [Traefik](https://traefik.io/traefik/){target="_blank"} - Automatic SSL with Let's Encrypt and request routing
94-
2. [serversideup/php:8.4-fpm-apache](https://hub.docker.com/r/serversideup/php/tags?name=fpm-apache){target="_blank"} - PHP with Apache for WordPress compatibility
94+
2. [serversideup/php:8.5-fpm-apache](https://hub.docker.com/r/serversideup/php/tags?name=fpm-apache){target="_blank"} - PHP with Apache for WordPress compatibility
9595
3. [MariaDB](https://hub.docker.com/_/mariadb){target="_blank"} - MySQL-compatible database without Oracle licensing
9696

9797
::tip
@@ -136,7 +136,7 @@ Treating containers as the runtime environment while keeping WordPress files on
136136
```yml [compose.yml]
137137
services:
138138
wordpress:
139-
image: serversideup/php:8.4-fpm-apache
139+
image: serversideup/php:8.5-fpm-apache
140140
volumes:
141141
- ./:/var/www/html
142142
ports:

docs/content/docs/4.deployment-and-production/3.packaging-your-app-for-deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ In the [installation guide](/docs/getting-started/installation), your `compose.y
1717
```yml [compose.yml]
1818
services:
1919
php:
20-
image: serversideup/php:8.4-fpm-nginx
20+
image: serversideup/php:8.5-fpm-nginx
2121
ports:
2222
- 80:8080
2323
volumes:
@@ -33,7 +33,7 @@ This works great for development because:
3333
For production, you'll create a **custom image** that includes your application code:
3434
3535
```dockerfile [Dockerfile]
36-
FROM serversideup/php:8.4-fpm-nginx
36+
FROM serversideup/php:8.5-fpm-nginx
3737

3838
# Copy your application code into the image
3939
COPY --chown=www-data:www-data . /var/www/html
@@ -56,7 +56,7 @@ The `Dockerfile` should live at the root of your project, in the same directory
5656
For a simple PHP application, your Dockerfile might look like this:
5757

5858
```dockerfile [Dockerfile]
59-
FROM serversideup/php:8.4-fpm-nginx
59+
FROM serversideup/php:8.5-fpm-nginx
6060

6161
# Switch to root to install dependencies and copy files
6262
USER root
@@ -116,7 +116,7 @@ Don't use `latest` tags in production. Use specific versions:
116116
FROM serversideup/php:latest
117117

118118
# Good - explicitly versioned
119-
FROM serversideup/php:8.4-fpm-nginx
119+
FROM serversideup/php:8.5-fpm-nginx
120120
```
121121

122122
### 2. Run as non-root user

docs/content/docs/4.deployment-and-production/4.configuring-ssl.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Here's an example of directly exposing FrankenPHP to the internet with automatic
115115
```yml [compose.yml]
116116
services:
117117
php:
118-
image: serversideup/php:8.4-frankenphp
118+
image: serversideup/php:8.5-frankenphp
119119
ports:
120120
- 80:8080
121121
- 443:8443
@@ -164,7 +164,7 @@ Set your private key file permissions to `600` (read/write for owner only). Inco
164164
```yml [compose.yml]{8-10,13}
165165
services:
166166
php:
167-
image: serversideup/php:8.4-fpm-nginx
167+
image: serversideup/php:8.5-fpm-nginx
168168
ports:
169169
- 80:8080
170170
- 443:8443
@@ -228,7 +228,7 @@ While browsers will show warnings, self-signed certificates are useful for speci
228228
```yml [compose.yml]{7-9}
229229
services:
230230
php:
231-
image: serversideup/php:8.4-fpm-nginx
231+
image: serversideup/php:8.5-fpm-nginx
232232
ports:
233233
- 80:8080
234234
- 443:8443

docs/content/docs/5.guide/1.migrating-from-official-php-images.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ Review our [choosing an image](/docs/getting-started/choosing-an-image) guide to
4545

4646
#### Update your `Dockerfile` or `compose.yml` file
4747
:::tip
48-
We simply change `php:8.4-apache` to `serversideup/php:8.4-fpm-apache`
48+
We simply change `php:8.5-apache` to `serversideup/php:8.5-fpm-apache`
4949
:::
5050
**Dockerfile**
5151
:::code-group
5252
```dockerfile [ORIGINAL: Dockerfile]{1}
53-
FROM php:8.4-apache
53+
FROM php:8.5-apache
5454

5555
# Rest of your Dockerfile...
5656
```
5757
```dockerfile [UPDATED: Dockerfile]{1}
58-
FROM serversideup/php:8.4-fpm-apache
58+
FROM serversideup/php:8.5-fpm-apache
5959

6060
# Rest of your Dockerfile...
6161
```
@@ -66,15 +66,15 @@ FROM serversideup/php:8.4-fpm-apache
6666
```yml [ORIGINAL: compose.yml]{3,5-6}
6767
services:
6868
php:
69-
image: php:8.4-apache
69+
image: php:8.5-apache
7070
ports:
7171
- 80:80
7272
- 443:443
7373
```
7474
```yml [UPDATED: compose.yml]{3,5-6}
7575
services:
7676
php:
77-
image: serversideup/php:8.4-fpm-apache
77+
image: serversideup/php:8.5-fpm-apache
7878
ports:
7979
- 80:8080
8080
- 443:8443

0 commit comments

Comments
 (0)