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...
POSTGRES_PASSWORD=pass POSTGRES_USER=user POSTGRES_DB=db #POSTGRES_HOST_AUTH_METHOD=scram-sha-256 Run docker-compose down && docker-compose up -d and then docker-compose run db-test /bin/bash -c 'psql -d $POSTGRES_DB -U $POSTGRES_USER -h $DB_HOST' again. Enter pass as your passwo...
But after specifying the POSTGRES_HOST_AUTH_METHOD to trust like so: image: postgres volumes: - ./tmp/db:/var/lib/postgresql/data environment: POSTGRES_HOST_AUTH_METHOD: "trust" We are able to get the db container up and running: 👍 3 😕 1 craig...