mistakesnlearn.hashnode.dev20 Mistakes I Made While Deploying Strapi on AWS ECS (and How I Fixed Them)20 Mistakes I Made While Deploying Strapi on AWS ECS (and How I Fixed Them)1️⃣ Not Installing the Postgres Driver (pg) in the Docker Image Mistake:My Strapi container kept crashing with:Cannot find module 'pg' Why It Happened:Strapi needs the pg package to talk to Postgres. It’s not included by default. Fix:Added this to pa...Feb 19·4 min read
devopsbasicquestion.hashnode.devECS, RDS, ECR, Cluster1️⃣ What is Docker and why did you use it in this project? Answer:Docker is a tool to package an application with all its dependencies into a container so it runs the same everywhere (local, CI, cloud).In this project, Docker is used to containerize ...Feb 19·5 min read
devopsbasicquestion.hashnode.devCI/CD, Docker/Dockerhub, Github Action, Terraform1️⃣ What is GitHub Actions? Answer:GitHub Actions is a tool that runs automatic tasks when something happens in a GitHub repository, like when code is pushed.In my project, GitHub Actions automatically builds a Docker image and pushes it to Docker Hu...Feb 17·3 min read
mistakesnlearn.hashnode.dev🐳 Mastering Dockerfile: Advanced Syntax, Base Images, Multi-Stage Builds & Production-Grade OptimizationsMost tutorials teach Docker with: FROM node COPY . . RUN npm install CMD ["npm", "start"] But real-world Dockerfiles used in production are far more nuanced.This article goes deep into: Advanced Dockerfile syntax (not just basics) Environment-spec...Feb 13·7 min read
mistakesnlearn.hashnode.dev🚀 Deploying Strapi on AWS with Docker & Terraform: Real Problems, Real Fixes (A Practical DevOps Journey)Deploying a modern Node.js CMS like Strapi on AWS sounds simple on paper: “Just Dockerize it, spin up an EC2 with Terraform, and run the container.” In reality, I faced multiple real-world issues across: Dockerfile & .dockerignore Native Node.js ...Feb 13·5 min read