🐳

Docker & DevOps

Docker & DevOps — Complete Pipeline DOCKERFILE & IMAGE BUILD Dockerfile Structure FROM · WORKDIR · COPY · RUN · CMD Multi-stage builds · Layer caching Minimal base images · Security scanning Image Registry Docker Hub · Azure Container Registry docker push / pull · Tags Image signing · Vulnerability scan DOCKER COMPOSE — MULTI-SERVICE ORCHESTRATION Compose File services · networks · volumes depends_on · healthcheck environment · secrets · configs Networking Bridge · Host · Overlay DNS resolution Port mapping · Expose RUNNING CONTAINERS Web App ASP.NET Core Port 8080 API Gateway Node.js / Ocelot Port 3000 Background Worker Hangfire / RabbitMQ Job processing Database PostgreSQL / MongoDB Port 5432 Redis Cache In-memory store Port 6379 Message Queue RabbitMQ / Kafka Port 5672 / 9092 Docker Engine · containerd · runc · Namespaces · Cgroups · OverlayFS · Volumes VOLUMES & PERSISTENCE Named Volumes Bind Mounts CI/CD PIPELINES GitHub Actions Azure DevOps AZURE DEPLOYMENT App Service ACI / AKS MONITORING & LOGGING Application Insights Serilog / Seq Structured Logging Metrics · Traces Dashboards Alerts Infrastructure as Code: Terraform · ARM · Bicep · Pulumi · Ansible