Public Repository

Last pushed: 2 years ago
Short Description
Runs the spring-petclinic web application on centos, java8, tomcat, and with mysql db engine.
Full Description

The spring petclinic application run inside docker container at port 8080. This is build on centos latest image with java8 and tomcat7 installed.

Pull mysql and run db:

docker pull mysql
docker run --name mysql-container -e MYSQL_ROOT_PASSWORD=petclinic -e MYSQL_DATABASE=petclinic -p 3306:3306 mysql

Pull this image, run and connect to mysql

docker pull munishmehta/petclinic-mysql
docker run --link=mysql-container:mysql -p 9090:8080 -it --name petclinic munishmehta/petclinic-mysql

This will make application run on your machine's port 9090. so you access it as:
http://<machine ip address>:9090/petclinic


Docker Pull Command