This repository contains a docker-compose file to start a web stack with nginx, php8, and MySQL, using only official images.
To run the stack:
docker-compose up
The website files should be in the folder www
.
Create a local env
file with the required secrets:
cat << EOT > mariadb.local.env
MYSQL_ROOT_PASSWORD=your_mysql_root_password
EOT
then spin up the containers:
docker-compose up
At this point you should be able to access the website at localhost: it should show a summary of the PHP config.
In case you need to run a stack with a legacy version of PHP 5 you can use the
docker-compose-legacy.yml
, which uses an old PHP image.