Dockerizing in TRPC
Hi guys, I am developing a Next app with TRPC subscriptions/websockets and am running into issues trying to dockerize it. I took a look at the example project at https://github.com/trpc/examples-next-prisma-websockets-starter and saw that the docker-compose only dockerized the database and not the nextjs app. I was wondering if there was a reason for this.
My app works fine locally but as soon as I try to run it in a docker container, I get various errors like the websocket connection closing a few seconds into using the app.
Here's some excerpts of the errors
Here is the docker-compose section for the app
If anything else can help, please let me know and I will provide it in the thread. Thank you 🙂
GitHub
GitHub - trpc/examples-next-prisma-websockets-starter: 🏓 tRPC Next....
🏓 tRPC Next.js WebSocket Starter. Contribute to trpc/examples-next-prisma-websockets-starter development by creating an account on GitHub.
0 Replies