Dockerizing a NestJS app with Prisma and PostgreSQL #169
Replies: 17 comments 4 replies
-
Thanks for the detailed article, was really helpful and got me unstuck! |
Beta Was this translation helpful? Give feedback.
-
Hi Marc - some great content here, thanks for the detailed article. I was wondering about the switch from
|
Beta Was this translation helpful? Give feedback.
-
@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? |
Beta Was this translation helpful? Give feedback.
-
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 ! |
Beta Was this translation helpful? Give feedback.
-
Forgive me, I'm still fairly new to Docker. Why are we: COPY prisma ./prisma/ Isn't that redundant? |
Beta Was this translation helpful? Give feedback.
-
Each command ( When you first copy Read more about cached layers in Building Efficient Dockerfiles - Node.js. |
Beta Was this translation helpful? Give feedback.
-
Brilliant @marcjulian. Thanks for that reply and your great article 👍 |
Beta Was this translation helpful? Give feedback.
-
I have very strange bug ,
|
Beta Was this translation helpful? Give feedback.
-
@victororlyk sounds like you need to run a migration on your docker DB |
Beta Was this translation helpful? Give feedback.
-
@tannaurus
that this setup will do the trick, but actually i needed to switch |
Beta Was this translation helpful? Give feedback.
-
Great guide!!! What about running a migration on production when I running my app on the Google Cloud Platform? |
Beta Was this translation helpful? Give feedback.
-
@patryk0493 also curious about this. my guess is that you would run:
but I am curious how others go about this |
Beta Was this translation helpful? Give feedback.
-
would like to see how you setup for development as well |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
thank you :) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the article, but in my case I am still having an issue with |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions