Docker para NestJS (Dev)

Provision a Docker-based NestJS development environment with hot-reload and Dev Containers.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, docker, and includes scripts (resource) components.

What problem does it solve?

Configura um ambiente de desenvolvimento Docker para NestJS que não exige dependências no host, com suporte a hot-reload e Dev Containers.

Core Features & Use Cases

  • Verificar e corrigir Dockerfile e docker-compose para evitar volumes de node_modules do host.
  • Criar .dockerignore, Dockerfile adequado e docker-compose com configurações de hot-reload.
  • Suporte opcional a Dev Containers.

Quick Start

Siga os passos para criar o ambiente Docker com NestJS, usando o Dockerfile e docker-compose fornecidos, sem depender de Node.js/node_modules no host.

Frequently Asked Questions about Docker para NestJS (Dev)

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

FAQPage Schema
How do I set up a NestJS development environment with Docker without installing Node.js on my host machine?

Docker for NestJS development eliminates host dependencies by containerizing Node.js, npm, and your application. The Skill provisions a Dockerfile and docker-compose configuration that installs dependencies inside the container, uses anonymous volumes for node_modules, and enables hot-reload through proper volume mounting—so you develop without any local Node.js installation.

Can I use Docker with NestJS and still get hot-reload functionality during development?

Yes, hot-reload works with Docker when you configure volumes correctly. The Skill sets up docker-compose with source-code volume mounts that trigger file watchers inside the container, while keeping node_modules in an anonymous volume to avoid permission and performance issues.

What does .dockerignore do, and why do I need it for NestJS Docker development?

.dockerignore prevents unnecessary files from being copied into your Docker image during the build process. For NestJS projects, it excludes node_modules, .git, and local cache files, reducing image size and build time while ensuring clean in-container installations.

How do I fix EACCES permission errors when running NestJS in Docker?

EACCES errors occur when the container's user lacks write permissions on mounted volumes. The Skill addresses this by mounting node_modules as an anonymous volume instead of from the host, and configuring docker-compose to handle permissions correctly for npm install and hot-reload.

Does this Docker setup work with VS Code Dev Containers?

Yes, the Skill includes optional VS Code Dev Containers configuration, allowing you to open your NestJS project in a containerized environment directly from VS Code for a seamless development experience that mirrors your docker-compose setup.

Can I apply this Docker setup to an existing NestJS project, or only to new projects?

The Skill applies to both new NestJS projects and existing setups. It provides the Dockerfile, docker-compose configuration, and .dockerignore file needed to transition any NestJS project to zero-host-dependency Docker development with proper volume handling.