kunnoh / chatAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NestJS and Postgres docker-compose

NestJS backend container with POSTGRES database container Docker and docker-compose need to be installed.

docker version

docker -v

docker-compose version

docker-compose -v

Download & install system Dowload from github

git clone https://github.com/kunnoh/chatAPI.git

Start the system

Start the system in development mode
  1. This will run postgres image and start app locally with hot reloading.
  2. To run app in development mode, you have to change .env DB_HOST to be DB_HOST=localhost
make dev
Start the system in production mode
  1. This will run both postgres and app in different docker containers.
  2. To run app in production mode, you have to change .env DB_HOST to be DB_HOST=db
make prod

show app logs show app logs in production mode

make logs-app

Restart the system Restart the system

make restart

About

License:Apache License 2.0


Languages

Language:TypeScript 87.4%Language:Makefile 7.5%Language:JavaScript 2.7%Language:Dockerfile 2.4%