Repository navigation
Dockerizing a NestJS app with Prisma and PostgreSQL #169
Replies: 18 comments 4 replies
|
Thanks for the detailed article, was really helpful and got me unstuck! |
|
Hi Marc - some great content here, thanks for the detailed article. I was wondering about the switch from
|
|
@MatthieuVeillon thank your! Let me try to clarify the differences of
When you start a docker container on your development machine it will be accessible via
When you start know a DB and Nest Docker container you want Nest and Docker to communicate together. If you use Does that answer your question? |
|
That does make perfect sense yes. Communicating between containers themselves vs from the local env. I realized since then that I had modified my host file to map the Thanks for your clarification ! |
|
Forgive me, I'm still fairly new to Docker. Why are we: COPY prisma ./prisma/ Isn't that redundant? |
Each command ( When you first copy Read more about cached layers in Building Efficient Dockerfiles - Node.js. |
|
Brilliant @marcjulian. Thanks for that reply and your great article 👍 |
|
I have very strange bug , |
|
@victororlyk sounds like you need to run a migration on your docker DB |
|
@tannaurus that this setup will do the trick, but actually i needed to switch |
|
Great guide!!! What about running a migration on production when I running my app on the Google Cloud Platform? |
|
@patryk0493 also curious about this. my guess is that you would run: but I am curious how others go about this |
|
would like to see how you setup for development as well |
|
Hi, I've followed each step as you can see and defined my DATABASE_URL in .env as: Still my api can't reach the database, any thoughts? |
|
thank you :) |
|
Thank you for the article, but in my case I am still having an issue with |
|
How large is the Docker image expected to be? Right now it’s close to 650 MB, even though my Node.js app with Prisma is only around 250 MB. |
Uh oh!
There was an error while loading. Please reload this page.
Dockerizing a NestJS app with Prisma and PostgreSQL
How to dockerize a NestJS application with Prisma and PostgreSQL.
https://notiz.dev/blog/dockerizing-nestjs-with-prisma-and-postgresql
All reactions