Skip to content

barimehdi77/NestJs-Dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Barimehdi77/nestjs-dockerized

docker run -p 8080:3000 Barimehdi77/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