Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Best place to deploy payloadcms?

default discord avatar
hyra102 years ago
15

I know there are lots of ways to deploy it, but I wanted to know you guys favorite options, I didn't want to use aws EC3 mostly because I think for what I have it is too much



I love how vercel or amplify works while deploying apps and how it connects to github actions, do you know if there is something similar that you can deploy payloadcms that is as easy as that ?

  • discord user avatar
    jacobsfletch
    2 years ago

    Payload Cloud 🌥️

    https://github.com/payloadcms/payload/discussions/583

    This is marked as roadmap priority 1 and is being actively developed. I've deployed on Digital Ocean dozens of times, which works well but requires all the manual setup. We have some helpful tutorials for this listed in our docs here:

    https://payloadcms.com/docs/production/deployment#digitalocean-tutorials

    . You can also leverage Docker if you're doing this often or want to make standardize things, more on that here:

    https://payloadcms.com/docs/production/deployment#docker
  • default discord avatar
    thefrontend2 years ago

    I can highly recommend digitalOcean. But instead of spinning up a droplet (as in the documentation) you can simply deploy it as an „App“. Only very little configutration needed, autmatic deploys from your Github repository 🙏

  • default discord avatar
    eloahsam2 years ago

    i would suggest google cloud run, this will surely help

    https://discord.com/channels/967097582721572934/1075750048924708865
  • default discord avatar
    miguderp2 years ago

    for anyone finding this through the search, I'm currently using Railway and this is my setup (I'm using it inside a turborepo but you can replace it with simple yarn build & yarn start if you don’t).



    The experience is ok, will definitely go for the upcoming official platform once it's available though

  • default discord avatar
    francocdev2 years ago

    For me the best place is railway, but I also deploy to my vps with coolify and work really well (Better when you need more resources because it's more cheap).

  • default discord avatar
    kosmokoks2 years ago

    I'm using render.com but it's extra paid

  • discord user avatar
    tylandavis
    2 years ago

    I use Digital Ocean App platform for Payload. To me, it feels very similar to deploying on Vercel (which I use to deploy my frontend)

  • default discord avatar
    hyra102 years ago

    thank you for your suggestions 🙇‍♂️

  • default discord avatar
    techinverted2 years ago

    What have you entered for your base and publish directory

  • discord user avatar
    alessiogr
    2 years ago
    coolify

    Fuck I should have known about that earlier - would have saved me SO much money.



    Any reason why you'd use railway over that? And is Coolify really just that one command, or do you still need to do boilerplate stuff like hardening the server for security, auto-updates etc?

  • default discord avatar
    francocdev2 years ago

    I use railway when on a really low demand to payloadCMS when I can use the free credit. Otherwise, coolify for me is the absolute way to go.



    Just one command and deploy is super easy, also have autoupdates. You don't need to care of nothing else than deploy.



    Base directory and configure the build commands. Less than 10 min for sure.

  • default discord avatar
    paulpopus2 years ago

    damn, coolify looks amazing, thanks!

  • default discord avatar
    hades2000822 years ago

    I've deployed to Railway for low demand instances. I've also recently deployed to an Azure App Service which is a little more involved but works well once you figure out all the quirks.



    For Azure App Services the main things you'll need are:



    - An Azure Container Registry


    - A DevOps pipeline (to build and publish the dockerfile to the registry)


    - An Azure App Service set to deploy the docker image from the registry



    The main "gotcha" I hit was that the Dockerfile needed to have any

    PAYLOAD_PUBLIC_*

    environment variables added to it before the build command so that they are compiled in for the admin ui.



    I use a

    PAYLOAD_PUBLIC_*

    variable to set the serverUrl on the payload config so I can have multiple environments.

  • default discord avatar
    wiesson2 years ago

    The free instance works as well, but it's pretty annoying because the instance shuts down and it takes a couple of seconds to "wake up".

  • default discord avatar
    pegasusfj2 years ago

    I just got cheapest VPS hosting on Hetzner, installed docker, made deploy docker image and run the container there. $3.5 a month plus backup options.. makes it around $5 monthly for 2Gb 2vCPU virtual server. Runs like a charm.

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.