A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database

My Next.js frontend is a 10/10. My backend is a 0/10 graveyard of failed AWS instances and broken Docker containers. I’m stuck in tutorial hell trying to connect a simple Postgres DB. Is Prisma overkill? Am I over-engineering this? Help me break the cy…


This content originally appeared on DEV Community and was authored by Gabriel Cerdio

My Next.js frontend is a 10/10. My backend is a 0/10 graveyard of failed AWS instances and broken Docker containers. I'm stuck in tutorial hell trying to connect a simple Postgres DB. Is Prisma overkill? Am I over-engineering this? Help me break the cycle! What's the 'it-just-works' stack for this?

I'm not here with a 5-step tutorial for success. I'm here with a war story, a call for help, and hopefully, a future redemption arc.

I have this project, Manhattan v1.0, a frontend I've been building with Next.js and React. I love how it looks, how it feels, and the potential it has. You can check it out for yourself right here:

➡️ GitHub Repo: https://github.com/3lneer/Manhattanv1.0

The problem is, right now, it's just a pretty face. A shiny, soulless shell. It needs a backend—a PostgreSQL database to be exact—and this is where my journey went off a cliff.

The Mission: A Free Backend in the Cloud
My goal seemed simple: connect my app to a PostgreSQL database that wouldn't cost me an arm and a leg (ideally, free) while I'm developing.

Attempt #1: The Big Cloud Dream (AWS RDS) 🌩️
Like many, I thought, "Let's do this the 'professional' way." I dove headfirst into AWS RDS. I configured my instance on the free tier, felt the power of the cloud... and was quickly overwhelmed. The security configurations (VPCs, Security Groups), the IAM credentials, and that constant paranoia that one wrong click would land me a bill the size of a new car.

Result: After hours of frustration and feeling like I was building a rocket ship just to go to the corner store, I gave up. AWS is incredibly powerful, but for my current stage, it was like using a sledgehammer to kill a fly. Failure.

Attempt #2: The Local Fortress (Docker) 🐳
"I know!" I thought. "I'll do it locally. Total control, zero cost." I submerged myself in the world of Docker. I wrote my docker-compose.yml with my Postgres service, ready to connect with DBeaver and my app.

It sounded perfect in theory. In practice, I found myself fighting with volumes, container networks that wouldn't talk to each other, and cryptic errors that my Stack Overflow searches only made more confusing.

Result: I have a Docker image that is probably offended at me and refuses to cooperate. I feel more lost than before. Failure, again.

The Current State: Analysis Paralysis 😵
And here I am. My frontend is ready, DBeaver is open waiting for a connection that never comes, and a terminal that stares back at me with disdain. I'm so stuck that, just to feel productive and cool, I started downloading Omarchy. At least that way I feel like I'm on the cutting edge of something.

The Additional Dilemma: Is Prisma My Friend or My Foe?
My project uses Prisma as an ORM. I love the idea of type safety and automatic migrations. But now, in the midst of this chaos, I'm wondering:

Am I just adding an unnecessary layer of complexity? Should I ditch Prisma and go back to raw SQL queries to simplify things, or is it precisely the tool that, if used correctly, could save me?


This content originally appeared on DEV Community and was authored by Gabriel Cerdio


Print Share Comment Cite Upload Translate Updates
APA

Gabriel Cerdio | Sciencx (2025-09-29T02:23:55+00:00) A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database. Retrieved from https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/

MLA
" » A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database." Gabriel Cerdio | Sciencx - Monday September 29, 2025, https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/
HARVARD
Gabriel Cerdio | Sciencx Monday September 29, 2025 » A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database., viewed ,<https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/>
VANCOUVER
Gabriel Cerdio | Sciencx - » A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/
CHICAGO
" » A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database." Gabriel Cerdio | Sciencx - Accessed . https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/
IEEE
" » A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database." Gabriel Cerdio | Sciencx [Online]. Available: https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/. [Accessed: ]
rf:citation
» A Broken Backend Chronicle: Lost in the Labyrinth of AWS, Docker, and a Next.js App Screaming for a Database | Gabriel Cerdio | Sciencx | https://www.scien.cx/2025/09/29/a-broken-backend-chronicle-lost-in-the-labyrinth-of-aws-docker-and-a-next-js-app-screaming-for-a-database/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.