How to setup linux development server using docker to support multiple php and mysql version?

I have many php projects and each required different php and mysql version, So I just want to setup docker machine that run multiple instance of server with specific php and mysql version.

Source: StackOverflow