Josephine
Josephine

Reputation: 35

How to containerize a simple Java app with H2 database

I wrote a simple Java Web application based on Spring with H2 database. Now I want to containerise it.

I was thinking about using docker. Is that a good choice. Would there be some other tool ?

Honestly I do not know advantages of docker. I mean Java is platform independent anyway. So what makes it appealling of using Docker ?

What I also understand if you have many many containers you need a tool like Kubernetes to manage all these containers.

Thanks for your help.

Upvotes: 0

Views: 502

Answers (1)

Rafał Leszko
Rafał Leszko

Reputation: 5541

I recommend reading Docker Get Started, this will answer all your questions.

If you need a quick example of a dockerized Spring application you can check this one or read Spring Boot with Docker guide.

Upvotes: 1

Related Questions