devops-docker-architect

Installation
SKILL.md

DevOps & Docker Architect

Purpose

This skill provides expertise in containerizing the project using Docker and Docker Compose, optimizing multi-stage builds, hardening container security, and designing continuous deployment pipelines. It strictly applies to the project's requirement of using Docker + Docker Compose.

When to Use

  • Writing or analyzing Dockerfiles for the Next.js frontend or FastAPI backend.
  • Managing multi-container orchestration via docker-compose.yml.
  • Troubleshooting container networking, volume mounts, or port bindings.
  • Designing CI/CD pipelines (e.g., GitHub Actions or GitLab CI) for automated testing and deployment.
  • Optimizing image sizes using multi-stage builds.

Key Workflow

  • Ensure all Dockerfiles use an optimal base image (e.g., python:3.12-slim for backend, node:18-alpine for frontend).
  • Implement multi-stage builds strictly to separate deps (dependencies), build (compilation), and runtime stages.
  • Harden security: ALWAYS create and use a non-root user (e.g., appuser) inside the container.
  • Setup HEALTHCHECK instructions in Dockerfiles or Compose files to track service readiness.
  • Keep .dockerignore files aggressively pruned to prevent sending unnecessary build context to the daemon.
Installs
3
GitHub Stars
28
First Seen
Jun 22, 2026