Skip to content

NestJS Docker Easy Starter Kit - NestJS v10.x, Postgres v16.x, pgAdmin v4.x

Notifications You must be signed in to change notification settings

refactorian/nestjs-typeorm-docker

Repository files navigation

Nest Logo

NestJS Docker Starter Kit

  • NestJS v10.x
  • TypeScript v5.x
  • Postgres v16.x
  • pgAdmin v4.x
  • Adminer v4.8.x
  • Node.js v18.x
  • NPM v10.x

Requirements

How To Deploy

  • docker compose up -d

Notes

App

Adminer

  • URL: http://localhost:8080
  • System: PostgreSQL
  • Server: db
  • Username: refactorian
  • Password: refactorian
  • Database: refactorian

pgAdmin

Docker compose commands

  • Build or rebuild services
    • docker compose build
  • Create and start containers
    • docker compose up -d
  • Stop and remove containers, networks
    • docker compose down
  • Stop all services
    • docker compose stop
  • Restart service containers
    • docker compose restart
  • Run a command inside a container
    • docker compose exec [container] [command]

What is Nest?

Nest (NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).

Under the hood, Nest makes use of robust HTTP Server frameworks like Express (the default) and optionally can be configured to use Fastify as well!

Nest provides a level of abstraction above these common Node.js frameworks (Express/Fastify), but also exposes their APIs directly to the developer. This gives developers the freedom to use the myriad of third-party modules which are available for the underlying platform.