https://thriveread.com/docker-apache-httpd-with-php-fpm-and-mysql/
https://docs.typo3.org/m/typo3/tutorial-getting-started/main/en-us/SystemRequirements/Index.html
Inspiration taken from https://github.com/soft-industry/docker-compose-php/blob/master/php-fpm-5.6.yml
Official MySQL Docker image guide: https://hub.docker.com/_/mysql
Alternative Infos https://hub.docker.com/r/cytopia/mysql-5.6
Run docker compose
docker compose up
Rebuild docker compose due to changes
docker compose up --build
build docker image -> amd64 on m1
docker buildx build --platform linux/amd64 --file Dockerfile.php56 -t image-name .
docker run --rm -it --platform linux/amd64 image-name bash
That will drop you into a bash shell in an amd64 container. In container:
uname -a
Testing
build php-fpm on localhost
docker buildx build --platform linux/amd64 --file Dockerfile -t php56-fpm-local .
docker run --rm -it -p 8888:80 --platform linux/amd64 php56-fpm-local bash
docker run --rm -it --platform linux/amd64 mysql-db bash