This is php8.0 image and I have got it working up untill the prompt to install Acorn. However, installing Acorn upgrades the composer dependency of php to 8.1. This breaks everything in the docker image.
I have tried to manually upgrade the image to php8.1 but this creates a lot of problems with extensions and dependencies for laravel etc.
I have tried a lot of different setups via Google, even create an official php image, and I’m now counting 4 full days of troubleshooting.
Does anyone have any pointers to a dockerfile & docker-compose.yml that actually works with bedrock+sage, I’d be very grateful.
We’ve had success with the runtime images taken from the Bitpoke stack. They provide Bedrock-specific containers with PHP-FPM and Nginx. These images are intended as a production runtime on K8s, but will work for Docker.
Creating a docker-compose.yml with a MySQL service should be fairly trivial after that.
I’m not advocating this approach for production, but if you want to bundle Node and some other dev tooling into the image, you might be able to cannibalise this. This can be useful if you want a fully isolated dev container. This dockerfile uses multi-stage builds: runtime without dev tooling, and dev with node / mysql-client.
@strarsis pull access denied for strarsis/php-bedrock, repository does not exist or may require ‘docker login’: denied: requested access to the resource is denied