Skip to content

demondayza/nestjs-prisma-docker

 
 

Repository files navigation

NestJS Prisma Docker

DON'T commit .env files into version control, add .env to .gitignore. .env files are added here as an example.

Develop the Nest application

npm install

cp .env.example .env

npx prisma generate

npm run start:dev

Docker File

Get started by running

docker build -t nest-api .

docker run -p 3000:3000 --env-file .env -d nest-api

Docker Compose

docker-compose up
# or detached
docker-compose up -d

About

Dockerizing a NestJS app with Prisma and PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 71.1%
  • JavaScript 12.2%
  • Dockerfile 9.3%
  • Shell 7.4%