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

2024-05-01 20:23:29.925 UTC [43727] FATAL:  unsupported frontend protocol 0.0: server supports 3.0 to 3.0
2024-05-01 20:23:30.133 UTC [43728] FATAL:  unsupported frontend protocol 255.255: server supports 3.0 to 3.0
2024-05-01 20:23:30.337 UTC [43729] FATAL:  no PostgreSQL user name specified in startup packet
2024-05-01 20:50:11.606 UTC [46291] FATAL:  unsupported frontend protocol 0.0: server supports 3.0 to 3.0
2024-05-01 20:50:12.081 UTC [46292] FATAL:  unsupported frontend protocol 255.255: server supports 3.0 to 3.0
2024-05-01 20:50:13.158 UTC [46293] FATAL:  no PostgreSQL user name specified in startup packet
2024-05-01 21:33:41.244 UTC [50461] ERROR:  syntax error at or near "-" at character 18
2024-05-01 21:33:41.244 UTC [50461] STATEMENT:  SELECT * FROM cms-analyser-results LIMIT 20;
2024-05-01 21:33:41.573 UTC [50471] FATAL:  database "template0" is not currently accepting connections
2024-05-01 21:33:41.674 UTC [35534] FATAL:  terminating connection due to administrator command
2024-05-01 21:33:41.936 UTC [50474] ERROR:  cannot drop the currently open database
2024-05-01 21:33:41.936 UTC [50474] STATEMENT:  DROP DATABASE postgres;
2024-05-01 21:33:42.072 UTC [50475] ERROR:  database "spraykaro" does not exist
2024-05-01 21:33:42.072 UTC [50475] STATEMENT:  DROP DATABASE Spraykaro;
2024-05-01 21:33:44.708 UTC [50487] ERROR:  relation "public.admin_users" does not exist at character 23