У меня на сервере есть три контейнера: в одном выполняется мой внутренний код, в одном — MongoDB, а в другом — PostgreSQL. Службы, использующие MongoDB, работают без проблем, но службы, использующие PostgreSQL, не могут получить доступ к базе данных.
Код: Выделить всё
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connectio>
org.apache.tomcat.jni.LibraryNotFoundError: невозможно загрузить библиотеку: /app/szts-server/bin/libtcnative-2.so, невозможно загрузить библиотеку: /app /szts-server/bin/libtcnative-2.so, не могу >
в org.apache.tomcat.jni.Library.(Library.java:91) ~[tomcat-embed-core-10.1.24.jar!/:na]
Подробнее здесь:
https://stackoverflow.com/questions/792 ... postgresql