Docker is a platform that allows developers to create, deploy and run applications in isolated environments called containers.
A container packages an application and all its dependencies (libraries, runtime, system tools) into a single, lightweight unit, making it easy to move between different environments.
No need to worry about compatibility issues and missing dependencies anymore.
THE PROJECT
To demonstrate that I have created a simple Docker based setup for a PHP app that connects to a MySQL database and fetches data.
The project also make use of Docker Compose which simplifies running multi-container Docker applications.
The final result is actually "live" and hosted on my EC2 instance. Obviously I use different user credentials than the ones listed in my github repo.
Check the docker based PHP and MySQL app here
Project files and explanations are located in my github repo here