This demo will allow you to create a two tier application using ruby on rails and mysql.
Mysql is by far the most used database in the open source community so a docker image have been created with mysql installed on it.
Create a folder name mysqlImage and create Dockerfile that contains the instructions needed for the image.
In the docker file write the needed configurations:
# docker build –t washraf/mysql .
# docker run --name wpsql -d washraf/mysql
# docker run -p 80:80 --link wpsql:mysql -d wordpress