Docker + NestJS Dev Environment

Configure Docker development environments for NestJS with hot-reload and debugging.

Updated Apr 5, 2023
One-click install
npx skills add https://github.com/edneyreis999/zord-project --skill docker-nestjs-dev-environment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Docker + NestJS Dev Environment
Source: https://github.com/edneyreis999/zord-project/tree/main/claude-skills/docker-nestjs-dev
Command: npx skills add https://github.com/edneyreis999/zord-project --skill docker-nestjs-dev-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the complex and time-consuming setup of Dockerized development environments for NestJS. It automates the configuration of hot-reload, debugging, database persistence, and external services, drastically reducing setup time and troubleshooting efforts.

Core Features & Use Cases

  • Automated Docker Configuration: Generates optimized Dockerfiles, docker-compose.yaml files, and .dockerignore for rapid NestJS development.
  • Hot-Reload & Debugging: Configures instant code changes and seamless remote debugging with VSCode, boosting developer productivity.
  • Integrated External Services: Sets up PostgreSQL, MySQL, Redis, and RabbitMQ with proper health checks and data persistence for local development.
  • Use Case: When starting a new NestJS project, simply ask this Skill to "Configure Docker for my NestJS project with PostgreSQL and Redis." It will generate all necessary files, allowing you to docker-compose up and start coding immediately.

Quick Start

Configure Docker for my NestJS project with PostgreSQL and Redis for local development.

Frequently Asked Questions about Docker + NestJS Dev Environment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Docker development environment for NestJS with hot-reload?

Docker development environments for NestJS enable instant code changes through hot-reload by mounting your source code into a container running a development server. This Skill generates optimized Dockerfiles, docker-compose.yaml files, and VSCode debugging configuration so you can start developing immediately after running docker-compose up without manual setup.

Can I debug a NestJS application running in Docker with VSCode?

Yes, remote debugging with VSCode works by exposing the Node.js debugger port inside your container and configuring launch settings. This Skill automatically generates the debugging configuration, allowing you to set breakpoints and inspect variables in your NestJS code running inside Docker.

How do I configure PostgreSQL, MySQL, Redis, and RabbitMQ in Docker for local NestJS development?

Docker Compose services for PostgreSQL, MySQL, Redis, and RabbitMQ are defined in a single docker-compose.yaml with health checks, persistent volumes for data retention, and environment variables. This Skill templates these services pre-configured so your NestJS application connects to them immediately without separate installation or configuration steps.

What's the best way to avoid node_modules conflicts between local and Docker environments?

Docker volumes dedicated to node_modules prevent conflicts by keeping dependencies isolated inside the container, separate from your host machine. This Skill configures the volume strategy so npm install runs inside Docker, eliminating mismatches between local and containerized development.

Do I need timezone synchronization between my host and Docker containers?

Timezone synchronization ensures logs, timestamps, and scheduled tasks in your NestJS application match your local time zone, preventing debugging confusion. This Skill automatically configures timezone mapping between host and container so times stay consistent across your development workflow.

Why should I use a development-focused Dockerfile instead of a multi-stage build for local work?

Development-focused Dockerfiles skip production build steps and enable hot-reload by keeping the dev server running, whereas multi-stage builds optimize for production deployment. This Skill generates a lean development Dockerfile that prioritizes fast iteration and debugging over production image size.