Deploy Spring Boot WAR to Tomcat Docker Container Linked to MongoDB

preview_player
Показать описание
Deploy your Spring Boot war application to a Apache Tomcat Server which is Docker Container linked to MongoDB. The demo war application uses a REST Controller to respond to mapped URL requests and stores its visitor page count via logging to MongoDB whose value can then be retrieved via another URL mapping.

I’ll cover how to perform container linking via a docker compose YAML file and the docker compose commands. Docker Compose will start 3 Containers; Tomcat, MongoDB and Firefox at the correct IP address, port and address bar URL so that you don’t even have to start your browser or enter anything!

The tutorial goes on to demonstrate how you can git clone the spring boot application from GitHub and then simply re-produce the same exact environment via docker compose which references all images already pushed onto DockerHub.

Learning Docker Container linking is a must!

If you missed the 2nd tutorial in my Docker for Java Developer series then check it out here ...
“Deploy Spring Boot WAR to Tomcat in Docker Container”

If you missed the 1st tutorial in my Docker for Java Developer series then check it out here ...
“Docker for your Java Development Environment”

===============================================================================================

Subscribe to MVP Java ...

Follow me ...
Рекомендации по теме
Комментарии
Автор

Excellent video ! Covers all aspects with practical reasoning. Please share your knowledge on deploying this on cloud as you mentioned in this video. Eagerly waiting...
Today you have earned a new fan :)

tanveerengg
Автор

I looked into your Github project. Your application.properties is empty. Why? My Spring Boot and MongoDB project uses the application.properties file to define the for example. But I don't see yours.

wuda