Easy to use LAMP stack for local development with Docker.
Includes PHP 7.2, Apache 2.4, MySQL 5.7, PMA 5.1, Composer 2.0.
The PHP version can be changed in the Dockerfile
.
Apache is installed by the PHP image. The document root can be changed inside the Dockerfile
.
The MySQL version needs to be changed in docker-compose.yml
file
phpMyAdmin will run on port 3000. can be changed in docker-compose.yml
file
docker compose up
If you can see the MYSQL version when you go to http://127.0.0.1 then your container installation was successful.
docker exec -it php72 bash
Note that the php72
is the container_name
configured inside docker-compose.yml
file
docker exec -it mysql57 bash
This project is licensed under GNU GPLv3.0.