I have a postgres database running in a docker container. I'm able to connect to the postgres server using pgadmin. However, when I try to connect to the database using IntelliJ, I get the error:
"cannot connect to "postgres". The connection attempt failed"
Here is the connection information using pgadmin:
hostname: postgres
username: postgres
password: postgres
port: 5432
database: SpringDevDB
When I try the same information using Intellij, I get the error above.