Docker and Docker-Compose should be installed before execution the below commands
This applaiction consists of petclinic jar file which is generatoied after the mvn package
and database mysql
-
Clone the Repo
git clone https://gitlab.com/<username>/docker-petclinic.git
-
Build the app
docker-compose build
-
Push the images to dockerhub
docker-compose push
if images are not pushed make sure you login to the docker hub first
docker login
and then push
- Run the app
docker-compose up -d
Tag_version: The docker build tag version is maintaied in the docker-compose file under the section of
image: <dockerhub_username>/petclinic:<tag_version>
You can then access petclinic here: http://localhost:8083/