Skip to content

GabrielBragaGit/nestjs-dockerized

This branch is up to date with TommiCodes/nestjs-dockerized:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b895fc · Dec 11, 2021

History

8 Commits
Nov 1, 2020
Oct 21, 2020
Oct 21, 2020
Oct 21, 2020
Oct 21, 2020
Oct 21, 2020
Oct 21, 2020
Dec 11, 2021
Nov 1, 2020
Nov 1, 2020
Oct 21, 2020
Nov 1, 2020
Nov 1, 2020
Oct 21, 2020
Oct 21, 2020

Repository files navigation

Content Video 1

Dockerize the NestJS starter App.
https://www.youtube.com/watch?v=BrlQthcUHGw

Content Video 2

  • Add a docker-compose file and run also a postgres db
  • Connect with NestJS to the db
  • Post Data && Get Data over http (to NestJS) and then save it in the db

https://www.youtube.com/watch?v=jYFyLLqvHy8
(published on 05th of November 2020)

You need

  • NPM
  • Node.js
  • NestJS
  • Docker

Start Commands for docker-compose file

Builds, (re)creates, starts, and attaches to containers for a service.
docker-compose up

Start Commands for Docker

Build your image:
docker build <your path> -t <<user>/project-name>

Run:
docker run -p 8080:3000 <<user>/project-name>

For Example:
docker build <your path> -t thomas-oliver/nestjs-dockerized
docker run -p 8080:3000 thomas-oliver/nestjs-dockerized

Basic Docker Commands:
List your docker images: docker images
List your running containers: docker ps
List also stopped containers: docker ps -a Kill a running container: docker kill <id of container from docker ps (first 3 letters)>, eg docker kill fea

About

NestJS Starter/Example dockerized

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.5%
  • JavaScript 9.5%
  • Dockerfile 7.0%