Skip to content

Add dev container and VS Code configuration#8

Closed
gianlazz wants to merge 1 commit into
mainfrom
dev-containers
Closed

Add dev container and VS Code configuration#8
gianlazz wants to merge 1 commit into
mainfrom
dev-containers

Conversation

@gianlazz

@gianlazz gianlazz commented Jun 9, 2026

Copy link
Copy Markdown
Member

Changes

.devcontainer/Dockerfile

  • Base image: mcr.microsoft.com/devcontainers/typescript-node:24 (matches .nvmrc v24.16.0)
  • Installs Docker CLI for building/running the production Dockerfile from within the container
  • Pre-installs Playwright Chromium with system dependencies for e2e testing

.devcontainer/devcontainer.json

  • Docker-from-Docker feature for accessing the host Docker daemon
  • Forwards port 3000 (NestJS dev server) with auto-notify
  • Sets DATABASE_TYPE=sqlite as default
  • Runs npm install on post-create
  • All 14 recommended VS Code extensions (Prettier, ESLint, Tailwind, HTMX, Jest, Playwright, GitLens, Docker, etc.)
  • Editor settings: format on save, Prettier as default formatter, ESLint auto-fix, Tailwind in Handlebars
  • Named volume mount for node_modules for cross-platform performance

.vscode/launch.json

  • Debug NestJS config that launches npm run start:debug with auto-open browser
  • Attach to NestJS config that attaches debugger to port 9229

.dockerignore

  • Excludes node_modules, dist, data, .git, .devcontainer, .vscode, logs, and local env files from Docker builds

- Add .devcontainer/Dockerfile with Node 24, Playwright Chromium, and Docker CLI
- Add .devcontainer/devcontainer.json with Docker-from-Docker feature,
  port 3000 forwarding, SQLite env, all recommended extensions, and
  node_modules named volume for performance
- Add .vscode/launch.json with NestJS debug/attach configurations
- Add .dockerignore to exclude node_modules, dist, data, and local env files
@gianlazz gianlazz closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant