Error while starting ghost

I have made a configuration file and everything looks good in the file even though I get an error while starting the error

Here’s the full error

TypeError: Cannot read property 'connection' of undefined
at Object.sanitizeDatabaseProperties (/workspace/node_modules/ghost/core/shared/config/utils.js:62:25)
at Object.loadNconf (/workspace/node_modules/ghost/core/shared/config/loader.js:53:16)
at Object.<anonymous> (/workspace/node_modules/ghost/core/shared/config/index.js:3:25)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at bootGhost (/workspace/node_modules/ghost/core/boot.js:350:18)
error Command failed with exit code 1.

Ghost version:- 4.36.0
Also tried on latest version