spring boot + postgresql

hiya, is it possible to connect to the db on localhost to check if it works and deploy the app after that?

spring.datasource.url=jdbc:postgresql://db.internal:5432/db
spring.datasource.username=postgres
spring.datasource.password=password

this kind of connection didnt work for me and got me the exception such as

.UnknownHostException: db.internal

makes me think i can only connect to the db once the app is deployed? otherwise i won’t be able to check if it’s working correctly?

Are you connected to the wireguard profile from fly wg?

no, i’m not