Strapi server when deployed using docker container stops with errors, even though it works great for

Error shown is psql database logs