Erro em servidor de produção - resolvido

O que pode ser este erro ?

2020-07-30 12:46:49.186 DEBUG 19389 --- [ main] org.postgresql.jdbc.PgConnection
: setPrepareThreshold = 5
2020-07-30 12:46:49.216 DEBUG 19389 --- [ main]
o.p.core.v3.ConnectionFactoryImpl : Trying to establish a protocol version 3 connection
to db:5432
2020-07-30 12:46:49.269 DEBUG 19389 --- [ main] org.postgresql.Driver :
Connection error:
org.postgresql.util.PSQLException: The connection attempt failed.
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.j
ava:297)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49)
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:211)
at org.postgresql.Driver.makeConnection(Driver.java:459)
at org.postgresql.Driver.connect(Driver.java:261)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
at org.flywaydb.core.internal.jdbc.JdbcUtils.openConnection(JdbcUtils.java:56)
at
org.flywaydb.core.internal.jdbc.JdbcConnectionFactory.<init>(JdbcConnectionFactory.java:8
0)
at org.flywaydb.core.Flyway.execute(Flyway.java:438)
at org.flywaydb.core.Flyway.migrate(Flyway.java:149)
at
org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(
FlywayMigrationInitializer.java:65)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInit
Methods(AbstractAutowireCapableBeanFactory.java:1855)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeB
ean(AbstractAutowireCapableBeanFactory.java:1792)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreate
Bean(AbstractAutowireCapableBeanFactory.java:595)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBe
an(AbstractAutowireCapableBeanFactory.java:517)

Faço a conexão com o banco de dados via url.

local funciona, homologação e em produção não.

Quando a aplicação sobe, mostra este erro.

Postgresql

Em que local está hospedado?

Google cloud

Mas ja identifiquei um erro

no yml

estava faltando

flyway:
    url: jdbc:postgresql://lxxxxxxxxxxxx
    user: xxxxxx
    password: xxxxxxxx