Deploying a dockerized next.js app

Hey everyone! Has anyone deployed a Dockerized Next.js application to production before? I’m looking for some guidance on how to do the same with my application. Any tips or advice would be greatly appreciated!
P
PixelPioneer14d ago
Yes I did ,but I wanted to have api dir. and app router in the prod
R
raphico14d ago
Where did you deploy the app?
P
PixelPioneer9d ago
there you go ; the build and run commands (see down and i am storing it in the volume) are in the docker file -> https://github.com/MONISHSHARMA080/Magical-first-website-next-app
GitHub
GitHub - MONISHSHARMA080/Magical-first-website-next-app
Contribute to MONISHSHARMA080/Magical-first-website-next-app development by creating an account on GitHub.
R
raphico9d ago
Thanks! The approach I went for is using docker in development to mimic the production environment, ensuring consistency. But in production, I deployed the application to Vercel and used Vercel Postgres database. So basically, docker is utilized only in development. For the Dockerfile, I used the docker file provided by Theo in this documentation, https://create.t3.gg/en/deployment/docker, and used docker-compose to define and manage the application and database services. https://github.com/raphico/byte
GitHub
GitHub - Raphico/byte: A platform for developers to plan and manage...
A platform for developers to plan and manage virtual workshops - Raphico/byte
Want results from more Discord servers?
Add your server
More Posts
Has anyone used JSON Patch with an authoritative server state?Has anyone implemented JSON Patch over WebSocket? It seems like it is just what I need, but there'sHow would you structure the backend for an application like this?I have a simple app I want to rebuild in T3, and curious what approach would work well, I haven't usPlease help me save our internal app from cookies set at subdomains in our company!Our Nodejs Express application is seeing 400 bad request responses and 413 request header too large Fail to try beta version of Typescript because @t3-oss requirementhello guys, noob question, how to bypass peer dependencies requirement? i want to use typescript 5.5Module not found: Can't resolve './utils/createUtilityFunctions.mjs't3 starter app with nextauth auth.ts config problems```tsx const config = { providers: [GoogleProvider, FacebookProvider], adapter: DrizzleAdapter(dwhats the proper way to disable auto zoom focus on inputs and textareas on mobile?whats the proper way to disable auto zoom focus on inputs and textareas on mobile? i know you can seinternal server error when deploying to DigitalOceanWhen entering some specific pages in my site, the server gets an error and shuts down. Why is this error: NEXT_REDIRECTI'm doing a server call in RSC, but it crash the app and show this kind of error and It shows in theNodejs take less time instead BunWhy they close this issue?? https://github.com/oven-sh/bun/issues/10519Testing in reactHey everyone, I’ve been pondering whether diving into learning how to test React code is worth it. DCreate t3 app with nextauth and new router problemsI have a question regarding the t3-createapp with nextauth. In what file do I put my <SessionProvid