Turborepo to Dokploy
Hi everyone,
I’m working on a monorepo (Turborepo) that includes the following packages:
WebSocket server (Express.js)
Next.js app
Prisma ORM (shared between the WebSocket server and the Next.js app)
I’m using Yarn as the package manager, and everything is currently set up in a docker-compose file with four images:
-Next.js
-WebSocket server (WSS)
-Nginx
-Postgres
I have a couple of questions:
do I need still need Nginx in my docker compose, or I can use Traefik that Dokploy uses
do I still need the postgres image or I can just deploy a new postgres db right from Dokploy
Also,
I’ve read that it’s better to push the docker image to Docker Swarm, then fetch them in Dokploy to speed up deployments. Could someone explain how that works or share relevant resources?
Thanks!
3 Replies
despite I never do the monorepo deploy WITH the postgres, I still see many of the Dokploy's template use that way, and it works well
the only downside I could see is the backup, Dokploy database service has first-class backup supported with cronjob and maybe in the future has restore feature (not sure), in docker compose file, the only way I can see is backup through another docker service/script by yourself
if somebody has better insight, I wold love to learn more too, as I'm moving similar direction with this
I would personally use traefik, I prefer use things provided by dokploy by default because I trust those guys 😄
did you managed to deploy it? @Uberzeek
no, we switched to microservices
monorepo is not worth it imo
after we made the switch progress went 60-70% faster
monorepo is tons of trouble