Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 2 hours 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T01:55:59.000Z (over 1 year ago)
- Last Synced: 2024-05-01T11:28:34.382Z (6 months 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: 90
- Watchers: 2
- Forks: 29
- 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 installcp .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
```