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...
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...
ok syncing data to disk ... ok initdb: warning: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. Success. You can now start the database server us...