I am on windows and have a scala application having a main class which I simply run in my IDE to launch the application, and in the process a locally running oracle DB instance is connected to and some initial migration operations are performed. And all works fine.
Now when I try to run same application using docker, I see error:
Caused by: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: IO Error: The Network Adapter could not establish the connection (CONNECTION_ID=BlX 0QibPQjm+0Xl/nMnyFA==)
DB url configured in env config file is:
ORACLE_MAIN_DB_URL=jdbc:oracle:thin:@localhost:1521/xepdb1
What is wrong in my configuration?