Posts

AWS EFS (Elastic File System)

AWS EFS (Elastic File System) – Complete Practical Guide 1️⃣ What is EFS EFS (Elastic File System) is a managed NFS storage service in AWS used to share files between multiple servers (EC2 instances). Key Points Purpose: Share data between multiple servers Storage: Automatically scales up to petabytes Type: Serverless storage (no storage management required) Protocol: NFS v4.0 NFS v4.1 Integrations: EC2 ECS EKS Lambda Fargate Performance Modes General Purpose – Low latency (default) Elastic – For very high throughput workloads Pricing AWS Free Tier gives 5 GB free 2️⃣ Architecture of this Practical We will create: EC2 Server 1 (AZ-1) ----\ ---> EFS (Shared Storage) EC2 Server 2 (AZ-2) ----/ Both servers will access same files . 3️⃣ Step 1 – Create Security Group Go to: AWS Console → EC2 → Security Groups → Create Security Group Name efs-sg Inbound Rules Type Port Purpose...

Docker Compose — Complete Beginner to Intermediate Guide

🐳 Docker Compose — Complete Beginner to Intermediate Guide 1️⃣ What Is Docker Compose? Docker Compose is a tool used to: ✅ Define and run multi-container Docker applications ✅ Manage everything using a single YAML file ✅ Start/Stop full application using one command Instead of running multiple docker run commands manually, we use one configuration file. 2️⃣ Why Do We Need Docker Compose? Without Compose: docker run nginx docker run mysql docker run redis With Compose: docker compose up -d Compose is: Cleaner Easier to maintain Production-like structure Version controlled (YAML file) 3️⃣ File Naming & Structure ✅ Default File Name docker-compose.yml OR compose.yaml Docker automatically detects these. 📁 Typical Project Structure project-folder/ │ ├── docker-compose.yml ├── Dockerfile (optional) ├── .env (optional) └── app/ 4️⃣ Basic Structure of docker-compose.yml version: "3.8" services: web: image: nginx ports: ...