Project with Docker Compose - Building LAMP infrastructure
Watch the video 👇
Docker with Apache, MySQL 8.0, PHPMyAdmin and PHP.
I use docker-compose as an orchestrator. To run these containers:
docker-compose up -d
Open phpmyadmin at http://127.0.0.1:8000
Open web browser to look at a simple php example at http://127.0.0.1:80
Clone YourProject on www/
and then, open web http://127.0.0.1/YourProject
Run MySQL client:
docker-compose exec db mysql -u root -p
Infrastructure as code!
You can read this a Spanish article in Crashell platform: Apache, PHP, MySQL y PHPMyAdmin con Docker LAMP.