The BEST Next.js setup: Next.js + Postgres + Docker (Dev / Prod)

preview_player
Показать описание
Disclaimer: this is a sponsored video (paid). It's your responsibility to evaluate safety, accuracy and other relevant parts of the reviewed product.

Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship).

👉 Discord: all my courses have a private Discord where I actively participate

⏱️ Timestamps:
00:00 Intro
01:31 docker init
03:04 Docker compose watch (hot reload!)
03:55 Docker Scout
04:54 Postgres development setup (with Docker)
06:39 Prisma setup
11:53 Docker debug
13:05 Production environment
13:29 Vercel setup
18:54 Database migrations

#webdevelopment #reactjs #nextjs #docker
Рекомендации по теме
Комментарии
Автор

Great Video. I have deployed several NextJS container and it’s all fun and games until the container is behind a Proxy. For some reason NextJS 14 ignores env variables like HTTP_PROXY that node typically can handle. NextJS then is not able to send requests to services outside that proxy network like Auth providers. Do you know how set proxy variables to NextJS so the app can pass proxy’s?

spectagodx
Автор

Need a postgres + next.js + docker + VPS deployment workthrough video!

whatislove
Автор

What i like more about your videos your calm voice while explaining.

amraromoro
Автор

very very informative video..learnt so much in just 25 mins..awesome

VishalSharma-lspq
Автор

great tutorial about going live with next/pg app in Vercel!

not_a_human_being
Автор

Loved the tips on hot reload on Docker. Can you please make more videos on docker and kubernetes? Thanks!

ShahNawaz-ojxt
Автор

I don't know if this qualifies as being out of the scope of what you typically put out, but can you do a full on tutorial of docker? If it isn't too much to ask for

netTraverser
Автор

If I want to use docker compose to create containers for nextjs and postgre in the same time I build because I have problem about after build docker compose not connect to database. Can someone help me or show the example for me pls. Thank you

kritsrijakkot
Автор

Good video. Thank you. Using orm for real production it’s not good practice …

andrejkling
Автор

Very well made tutorial. I am looking for a stack for my side project. So I can use vercel for the edge compute. but my postgresql will sit in 1 region only. So there is no point using edge compute for my nextjs app at all, because the responses will get delayed due to DB query anyway. Is there a good cheap way to handle db latency?

sandzz
Автор

I had a error from bcryptjs, When i dockerize my nextjs 14 nextauth app. Is there any alternative for bcryptjs

athwala
Автор

Do you think Drizzle is better than Prisma?

AlexanderBelov-yo
Автор

thank you for the video! I was looking for a docker nextjs postgres video with prisma 😊

doob
Автор

Is Prisma or Drizzle ORM required as database to be part of my tech stack if I use Next.js? If so, why is this option better than the regular database connection setup? And is Neon or Planetscale necessary when using ORM's?

dianab
Автор

Did I miss the timestamp where you explained why I would need a docker if I can develop on my local machine, push it to git and from there I can deploy it on Vercel?

academyonnet
Автор

Would be nice if you publish this as a starter in GitHub

haiffy
Автор

I'm a Front-end Developer. I learn SQL in High School. I want to learn Next.js. Should I learn Algorithm & Data Structures first or just GO for Next.js ?? Please Help

Devlou
Автор

I would be so nice of you, Wesley, if you could provide your true subscribers a link to github repo's codebase for this video.

maksymdudyk
Автор

do I need to learn SQL before postgres or I can just jump in ?

lostinthenarrativve
Автор

I would love a tutorial on how to deploy postgres and next js in the same docker-compose instead of using Vercel storage. I have it set up, but I keep getting database connection errors because the build step of the next js app requires access to the database

MatanPresberg