Embedded Postgres/Docker for Postgres image
I have to develop a Contact Management system with Postgres DB as Java console app. The requirement is the db should be bundled to that java app so that when it start/stops this db also starts/stops. I read blogs which made me realize there are things like initializing db while installing our app in new system or using external java docker. But everything is confusing me. So, Kindly help me in How to bundle my db file so that even the java app is installed in my friend computer he can use the app as it can access to that db file
Scenario:
1.considering target pc has postgres
2.considering target pc has no postgres