E
E
Evgeny Kolman2020-03-25 12:21:18
PostgreSQL
Evgeny Kolman, 2020-03-25 12:21:18

How to set up a connection to a remote PostgresSql database from a Docker Container?

Good afternoon!

Made my application on spring-boot . I compiled a build and put it in Docker-Hub . I'm trying to start this application on another server.

But I get just such an error:
5e7b22140b09d568737312.png
Locally, the application naturally works. I understand that this error is due to the fact that I cannot connect to the database and thereby create the correct beans.

Please tell me how I can set up Docker or forward url-bases through NGNIX to make the application work on Docker .

Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question