Error: password authentication failed for user "user"

When I run strapi develop I get the following error

$ strapi develop
Starting the compilation for TypeScript files in
Building your admin UI with development configuration…

:heavy_check_mark: Webpack
Compiled successfully in 16.01s

Admin UI built successfully
error: password authentication failed for user “user”
at Parser.parseErrorMessage ()
at Parser.handlePacket ()
at Parser.parse ()
at Socket. (\node_modules\pg-protocol\dist\index.js:11:42)
at Socket.emit (node:events:513:28)
at Socket.emit (node:domain:489:12)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
length: 100,
severity: ‘FATAL’,
code: ‘28P01’,
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: ‘auth.c’,
line: ‘329’,
routine: ‘auth_failed’

Here is my database.ts file

export default ({ env }) => {
  return {
    connection: {
      client: 'postgres',
      connection: {
        connectionString: env('DATABASE_URL'),
        host: env('DATABASE_HOST', 'localhost'),
        port:'DATABASE_PORT', 5432),
        database: env('DATABASE_NAME', 'admin'),
        user: env('DATABASE_USERNAME', 'user'),
        password: env('DATABASE_PASSWORD', 'admin'),
        schema: env('DATABASE_SCHEMA', 'public'),
      pool: { min:'DATABASE_POOL_MIN', 2), max:'DATABASE_POOL_MAX', 10) },
      acquireConnectionTimeout:'DATABASE_CONNECTION_TIMEOUT', 60000),


Docker volume was corrupt and needed a restart, so I deleted it and created from scratch. It solved my problem