Answer the question
In order to leave comments, you need to log in
How to wrap existing postgresql db in docker container?
Good afternoon.
I have an app.jar application which, when installed, creates a user and password in posgtresql. At this point postgresql should just be installed and running.
I managed to push and run the application in a container, but it needs postgres.
How can you push the existing database into a container and explain to the application where to look?
Answer the question
In order to leave comments, you need to log in
You can't stuff bases into containers. And the DBMS is not desirable .
Raise the container with the base, fill it with a dump, in the application settings, specify where to connect.
Within docker-compose, this is convenient to do.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question