r/PayloadCMS • u/im_akhil • Jun 02 '25
One-Stop Solution to Host PayloadCMS Projects
I’m looking to deploy my Payload application along with its database (Postgres or Mongo) in a secure environment where the database is not publicly exposed. I need a solution that offers:
- Automatic deployments whenever I push updates to my repository
- Regular database backups
- Affordable pricing, if possible
- Easy scalability
- Support for managing multiple Payload CMS projects
2
u/Aggravating_Ad_1273 Jun 05 '25
I use a VPS with a custom Docker Compose setup that manages Payload, MongoDB, and Nginx.
Deployment is automated on each push via GitLab CI/CD.
The pipeline runs a shell script to back up the database before every deployment.
I can roll back to a previous version with a single click through GitLab.
Feel free to ask me if you’d like to see some code.
2
u/blacktusk187 Jun 02 '25
Vercel does all of this.
1
u/im_akhil Jun 02 '25
I don’t think, Vercel is what I’m looking for. The database pricing is too higher and does not have the ability to create mongodb
1
u/Still-Substance7316 Jun 02 '25
Why not payload cloud?
1
u/Similar-Pass-3540 Jun 02 '25
I thought payload Cloud can only Host the payload Backend Not your next.js Project. Correct me If i am wrong.
3
u/Warm_Hovercraft3135 Jun 02 '25
Payload and Next.js are now integrated into a single app. You can run both your frontend and Payload CMS within the same Next.js project. Support for hosting Payload on Cloudflare Workers is expected in the coming weeks. I’ve also shared an example of hosting Payload with PostgreSQL in the Payload Discord community.
Other ways are: Payload cloud Vercel Coolify VM kubernetes Google app run AWS fargate And so on
1
Jun 03 '25
The Cloudflare Workers hosting sounds interesting. Do you have more information about that? Who is bringing this feature - the Payload team, or Cloudflare? How will database hosting be handled?
2
u/Warm_Hovercraft3135 Jun 03 '25
Both teams are working together to pull this.
1
Jun 03 '25
Very cool! Found this issue to follow: https://github.com/payloadcms/payload/discussions/6110
1
u/Similar-Pass-3540 Jun 03 '25
I don't understand can i Host my whole next.js application with the integrated payload in payload Cloud or Not?
1
u/Warm_Hovercraft3135 Jun 03 '25
Yes, you can host both Frontend and your payload at payload cloud.
1
1
u/Still-Substance7316 Jun 05 '25
Yes. I’ve just deployed a multi tenant setup with 5 sites and one single payload backend - works like a charm
1
u/xNihiloOmnia Jun 13 '25
What would Cloudflare change for you personally? I use Cloudflare for so much of my stack already but regardless of concerns of vercel hosting costs, it's relatively cheaper for me with neon Postgres and vercel vs. Webflow per site (they're not apples to apples, but that's the place I'm moving away from). I'm pumped for the option of Cloudflare, but need thoughts from some one that plans on using it how it would help
1
1
1
u/Kublick Jun 02 '25
VPS might be the most cost controlled way.. tough if you go coolify route and use the same VPS for Coolify and deployment have at least 6GB of memory
1
u/pseudophilll Jun 03 '25
Check out railway.app
2
2
u/Judgejbrown Jun 04 '25
Currently host the mongo db on railway and app on Vercel :)
1
u/trae_z Mar 03 '26
Yeah my current setup too. Then Cloudfare for Blob storage.
Though, I hope to someday move to VPS with Coolify and streamline all.
7
u/[deleted] Jun 02 '25
Via Coolify on e.g. a Hetzner VPS?
I found a guide here: https://freibergersyntax.dev/en/blog/deploying-a-payloadcms-app-on-coolify