Deployment with kamal

Has anyone deployed Discourse with Kamal?

I guess it could work either by using the standalone template or by writing a deploy.yml with all dependency containers as accessories.

The doc says the standalone template has the disadvantage of longer downtimes when upgrading, but that would not be the case with kamal thanks to its zero-downtime deploys (it keeps the old container and only switches the reverse proxy to the new one when it responds with an HTTP 200).

But that won’t work because you can’t have two containers accessing the same postgres database at the same time. You’d need to build your own container to have it launch or use the new not-yet-supported ones that do stull ilke migrate the database on launch. You’d need someone who knows or understands a fair amount about both Discourse and Kamal to pull it off. And since no one has replied yet, it seems like such a person isn’t hanging around here.

I’d follow the standard install to start with and then see how to make something work with Kamal.