Unable to setup the connection

I am trying to connect docker postgres image with my next.js app and when I am trying to migrate the db, I am getting this error,

$ bun x drizzle-kit migrate
No config path provided, using default 'drizzle.config.ts'
Reading config file 'C:\Users\win 10\Desktop\docker-demo\drizzle.config.ts'
Using 'pg' driver for database querying
[⣯] applying migrations...Error: Connection terminated unexpectedly
    at C:\Users\win 10\Desktop\docker-demo\node_modules\pg-pool\index.js:45:11
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at PgDialect.migrate (C:\Users\win 10\Desktop\docker-demo\node_modules\src\pg-core\dialect.ts:72:3)
    at migrate (C:\Users\win 10\Desktop\docker-demo\node_modules\src\node-postgres\migrator.ts:10:2)