https://github.com/notiz-dev/nestjs-prisma-docker
Dockerizing a NestJS app with Prisma and PostgreSQL
https://github.com/notiz-dev/nestjs-prisma-docker
docker docker-compose nestjs postgresql prisma prisma2
Last synced: about 1 year ago
JSON representation
Dockerizing a NestJS app with Prisma and PostgreSQL
- Host: GitHub
- URL: https://github.com/notiz-dev/nestjs-prisma-docker
- Owner: notiz-dev
- Created: 2020-07-29T11:06:57.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T01:55:59.000Z (over 3 years ago)
- Last Synced: 2025-04-13T14:06:10.585Z (about 1 year ago)
- Topics: docker, docker-compose, nestjs, postgresql, prisma, prisma2
- Language: TypeScript
- Homepage: https://notiz.dev/blog/dockerizing-nestjs-with-prisma-and-postgresql
- Size: 1.16 MB
- Stars: 96
- Watchers: 1
- Forks: 28
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
npm install
cp .env.example .env
npx prisma generate
npm run start:dev
```
## Docker File
Get started by running
```bash
docker build -t nest-api .
docker run -p 3000:3000 --env-file .env -d nest-api
```
## Docker Compose
```bash
docker-compose up
# or detached
docker-compose up -d
```