dockware
Search…
Switch PHP Version
Every dockware version allows you to switch to any PHP version that is supported by Shopware 6. This is done when starting your container. You can either use a command option when using "docker run", or set the PHP version in your docker-compose.yml file.

Switch with RUN command

1
docker run --rm -p 80:80 -e PHP_VERSION=7.2 dockware/play:latest
Copied!
Watch our video about switching while using "docker run"

Switch with docker-compose

1
shopware:
2
image: dockware/play:latest
3
...
4
environment:
5
- PHP_VERSION=7.2
Copied!
Watch our video about switching with your docker-compose.yml

Switch at Runtime

This is a brand new feature. Please keep in mind, it might not yet exist everywhere, but we are working hard on rolling out all images soon
1
make switch-php version=8.0
2
make switch-php version=7.4
Copied!
The command has been designed to be as robust as possible.
This means, that nothing should break if you switch to the same PHP version, or even a version that is not supported and existing in the current image you use.
Last modified 1h ago