Coolify Template
Hello rivet team, are there any plans for having a Rivet template available on Coolify?
It would be fully awesome to also have a one-click deploy of Rivet but on your own server instead of a managed service
Lot's of Services like Appwrite, Supabase, even analytics tool have templates available on Coolify
See the list here: https://coolify.io/docs/services/overview
Coolify Docs
Self hosting with superpowers: An open-source & self-hostable Heroku / Netlify / Vercel alternative.

37 Replies
yeah we can do that
Awesome π
As soon this is available on Coolify as a service, I will test it π―
cc @ABC
let's get this going, been wanted to get coolify going for a bit now
Hi, i'm actually working on one π
The problem is that I'm having issues with the postgres DB...
Here is the docker compose:
resolved in other thread
which one?
Hey @ifirix here is the PR: https://github.com/coollabsio/coolify/pull/6963
You can copy the Yaml and click on
Docker Compose Empty and paste the PR's .yaml template in the meantime.
The coolify repo is going fast these recent days, a huge beta version will be released, the PR might be merged this week...GitHub
Add Rivet template by yipfram Β· Pull Request #6963 Β· coollabsio/c...
Description
This PR adds a Docker Compose template for Rivet - an open-source visual AI programming environment for building AI agents with LLMs.
What's included
rivet-engine: Main Rivet ...

Merged today
Sorry for the late response, i managed to deploy the container on coolify but i'm getting certain issues when i am trying to connect from the backend locally.
Compose File Example:
I took the Rivet example on railway you guys made:
My .env example
On the package.json I updated rivetkit to
2.0.21
Everytime i start the backend, i get this issue:
@Nathan Looks like it is an issue on the SDK running on backend
@Yipfram the container looks to be running pretty good!
Any container log?
Are you using ip as url or fqdn?
fqdn, specifically the
SERVICE_URL_RIVET
Will look into it!
My coolify instance is protected by a cloudflare proxy
Maybe that is the cause π€
The Cloudflare Proxy
I disabled the proxy, still getting the same error log
My environment:
I have the coolify instance hosted on the cloud (Hetzner Server) Protected by a Cloudflare Proxy
I am trying to run the backend (the railway template) locally on my machinedid you edit this log? Is it written SERVICE_URL_RIVET in there?
will catch up on this, but fyi we shipped an arm image last night
Yes, i edited the log.
I hid it by replacing the domain with
SERVICE_URL_RIVET
@Nathan Thanks for the update!
But this time i am using a Intel x64 dedicated server π―finally catching up on this
@kolabrine looks like you found the error.
we added behavior recently that filters incoming hosts to validate you're connecting to the correct region: https://github.com/rivet-dev/rivet/blob/8d20c5f4230599757abbe06cbe67e04e32f7ab85/engine/packages/config/src/config/topology.rs#L91
i'm going to disable this behavior by default in dev since it's not useful unless you're running a multi-region deployment. let me ship a release for that right now.
GitHub
rivet/engine/packages/config/src/config/topology.rs at 8d20c5f42305...
An open-source library for long-lived processes with realtime, persistence, and hibernation - rivet-dev/rivet
Awesome, will wait for the Docker Image release π
try
rivetkit/engine-2.0.21-rc.1@Nathan The issue is persisting but now i got these logs instead on the
message.txtFrom Coolify image seems to be running fine

Just in case, The Proxy From Cloudflare is completely disabled.
I still have it disabled
Update: Now i will test it with the proxy enabled
Yep, same error logs

what are your env vars for the engine? i'll manually test this in a second to see what's up
@Nathan Will DM you the .env variables
So you can have direct access
@kolabrine any chance you're using bun and getting this same error? https://discord.com/channels/822914074136018994/1432630181033410560/1432927833470013470
Using Node
v22.19.0
Not used bun at allcan you run the node process
LOG_LEVEL=debug? it should log a descriptive error code of why your runner is disconnected
next release includes the error code in warning so it's easier to diagnose
thx for the help hereSorry for the late response
@Nathan dm you the logs π―
Guys i think i found the cause of the issue.
My node app was trying to connect to a namespace that was not created on the first place β οΈ

I discovered it using the
LOG_LEVEL=debug @Nathan recommended π―
As a suggestion for improving the DX, on the error logs there could be a feedback like Runner disconnected: Namespace does not existsFinally connected to the remote rivet instance β

@Yipfram The
template/service you created is running fine β
Maybe you can share important tips when updating the docker compose file on coolify
So the devs can update the templates when they launch new rivetkit versions.
https://github.com/coollabsio/coolify/blob/next/templates/compose/rivet-engine.yaml
I don't understand π
Do you mean sharing tips for rivet community or coolify docs?
What tips? Do you mean updating the templates docker image version for rivet/engine?
My bad
i meant, yes for rivet community.
and yes for
Updating the templates docker image version for rivet/engine
I was wondering if opening a PR that only updates the image version is enough, or if thereβs another important step I might be missing.
UPDATE: they already have docs for it: https://coolify.io/docs/get-started/contribute/serviceCoolify Docs
Self hosting with superpowers: An open-source & self-hostable Heroku / Netlify / Vercel alternative.
