NestJS backend container with POSTGRES database container Docker and docker-compose need to be installed.
docker version
docker -vdocker-compose version
docker-compose -vDownload & install system Dowload from github
git clone https://github.com/kunnoh/chatAPI.gitStart the system
- This will run postgres image and start app locally with hot reloading.
- To run app in development mode, you have to change
.envDB_HOSTto beDB_HOST=localhost
make dev- This will run both postgres and app in different docker containers.
- To run app in production mode, you have to change
.envDB_HOSTto beDB_HOST=db
make prodshow app logs show app logs in production mode
make logs-appRestart the system Restart the system
make restart