Hello!

When setting POSTGRES_HOST_AUTH_METHOD=trust, PostgreSQL does not require a password. Source: https://hub.docker.com/_/postgres# However, org.springframework.boot.docker.compose.service.connection.postgres.PostgresEnvironment#extractPassword does not support it, and it needs a password anyway. Source: https://github.com/spring-projects/spring-boot/blob/fba6f29bc80037658941dc4650ead5c3925258ec/spring-boot-project/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/service/connection/postgres/PostgresEnvironment.java#L48

Spring version: latest

I'm going to take a look later and see whether I can contribute. Thanks in advance.