Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 9 additions & 30 deletions guides/hosting/installation-updates/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#syntax=docker/dockerfile:1.4

ARG PHP_VERSION=8.3
FROM ghcr.io/shopware/docker-base:$PHP_VERSION-caddy AS base-image
FROM ghcr.io/shopware/docker-base:$PHP_VERSION-frankenphp AS base-image
FROM ghcr.io/shopware/shopware-cli:latest-php-$PHP_VERSION AS shopware-cli

FROM shopware-cli AS build
Expand Down Expand Up @@ -60,39 +60,19 @@
## Available Tags / Versioning

::: info
We recommend using FrankenPHP over Caddy or Nginx, as it does automatic resource allocation and requires just one process to run PHP, which is better suited for containerized environments. However, note that tracing (especially via Blackfire) is currently not supported in FrankenPHP. If you want to use tracing, we recommend using Caddy.
We recommend using FrankenPHP over Caddy or Nginx, as it does automatic resource allocation and requires just one process to run PHP, which is better suited for containerized environments.
:::

The Docker image is versioned by the PHP Version and the PHP Patch version. The Docker Image is updated daily and contains the latest security patches.

The following tags are available with Caddy:
The following tags are available with our recommended FrankenPHP image:

- `shopware/docker-base:8.3` - PHP 8.3 with Caddy
- `shopware/docker-base:8.3-caddy` - PHP 8.3 with Caddy (same as above, but more explicit)
- `shopware/docker-base:8.3.12-caddy` - PHP 8.3.12 with Caddy (same as above, but much more explicit)
- `shopware/docker-base:8.3-caddy-otel` - PHP 8.3 with Caddy and OpenTelemetry
- `ghcr.io/shopware/docker-base:8.3-frankenphp` - PHP 8.3 with FrankenPHP
- `ghcr.io/shopware/docker-base:8.3.12-frankenphp` - PHP 8.3.12 with FrankenPHP (same as above, but much more explicit)
- `ghcr.io/shopware/docker-base:8.3-frankenphp-otel` - PHP 8.3 with FrankenPHP and OpenTelemetry
- `ghcr.io/shopware/docker-base:8.3.12-frankenphp-otel` - PHP 8.3.12 with FrankenPHP and OpenTelemetry (same as above, but much more explicit)

The following tags are available with FrankenPHP:

- `shopware/docker-base:8.3-frankenphp` - PHP 8.3 with FrankenPHP
- `shopware/docker-base:8.3.12-frankenphp` - PHP 8.3.12 with FrankenPHP (same as above, but much more explicit)
- `shopware/docker-base:8.3-frankenphp-otel` - PHP 8.3 with FrankenPHP and OpenTelemetry
- `shopware/docker-base:8.3.12-frankenphp-otel` - PHP 8.3.12 with FrankenPHP and OpenTelemetry (same as above, but much more explicit)

We also have Nginx images available:

- `shopware/docker-base:8.3-nginx` - PHP 8.3 with Nginx (same as above, but more explicit)
- `shopware/docker-base:8.3.12-nginx` - PHP 8.3.12 with Nginx (same as above, but much more explicit)
- `shopware/docker-base:8.3-nginx-otel` - PHP 8.3 with Nginx and OpenTelemetry

Additionally we have also FPM only images available:

- `shopware/docker-base:8.3-fpm` - PHP 8.3 with FPM
- `shopware/docker-base:8.3.12-fpm` - PHP 8.3.12 with FPM (same as above, but much more explicit)
- `shopware/docker-base:8.3-fpm-otel` - PHP 8.3 with FPM and OpenTelemetry
- `shopware/docker-base:8.3.12-fpm-otel` - PHP 8.3.12 with FPM and OpenTelemetry (same as above, but much more explicit)

The images are available at Docker Hub and GitHub Container Registry (ghcr.io) with the same names and tags.
All images (FrankenPHP, Caddy, Nginx, FPM only) are available at Docker Hub and GitHub Container Registry ([ghcr.io](https://github.com/shopware/docker/pkgs/container/docker-base)) with the same names and tags.

## Default installed PHP Extensions

Expand Down Expand Up @@ -198,7 +178,7 @@

init:
<<: *shopware
entrypoint: /setup
entrypoint: [ "php", "vendor/bin/shopware-deployment-helper", "run" ]

Check warning on line 181 in guides/hosting/installation-updates/docker.md

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] guides/hosting/installation-updates/docker.md#L181

File types are normally capitalized. (FILE_EXTENSIONS_CASE[1]) Suggestions: `PHP` URL: https://languagetool.org/insights/post/spelling-capital-letters/ Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1 Category: CASING
Raw output
guides/hosting/installation-updates/docker.md:181:23: File types are normally capitalized. (FILE_EXTENSIONS_CASE[1])
 Suggestions: `PHP`
 URL: https://languagetool.org/insights/post/spelling-capital-letters/ 
 Rule: https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en-US&subId=1
 Category: CASING
depends_on:
database:
condition: service_started
Expand Down Expand Up @@ -244,7 +224,6 @@
- Set up Dependabot / Renovate to keep the image up to date
- Use an external storage provider for all files to keep all state out of the container
- Use Redis/Valkey for Cache and Session storage so all instances share the same cache and session
- Use Nginx Variant instead of Caddy as it's more battle tested

## Adding custom PHP extensions

Expand Down