Hi, Trying to get the self-hosted version up and running. Cannot figure out how to get past this er
Hi,
Trying to get the self-hosted version up and running. Cannot figure out how to get past this error when using the default docker-compose.yaml
Caught error (RUST_BACKTRACE=1 RUST_LOG=info,common::errors=debug for full trace): relative URL without a base.
Any hints?
16 Replies
hello guys
https://docs.convex.dev/quickstart/nextjs Trying to follow this quickstart with Nextjs () + Self Hosted convex. I am getting this. What should I do next ?
Next.js Quickstart | Convex Developer Hub
Add Convex to a Next.js project


What setup are you using? If it's local docker, the site url is
http://127.0.0.1:3211
. If you're using fly, see these docs https://github.com/get-convex/convex-backend/blob/main/self-hosted/fly/README.md#http-actions. It will be your fly app url with /http
at the endGitHub
convex-backend/self-hosted/fly/README.md at main · get-convex/conve...
The open-source reactive database for app developers - get-convex/convex-backend
it looks like you want the
SITE_URL
for use by convex auth, which i believe is the url for where you're hosting your app's frontend, so like http://localhost:8000@Lee is right, we have many variables that use SITE_URL, sorry for the confusion
I tried both and but it gets stuck

can we run the downloaded
convex-local-backend
with local postgres?got this error

Not sure where to put the connection string, I create and .env file but it didn't work.
same thing
Put it on the command line after the postgres-v5
what about coolify docker version?
I'm also trying to use postgres when I run convex in coolify. But the convex does not start
@ucin @Li Any reason why you're running the binary directly instead of
docker run
or docker compose
? there are other flags you might need to get everything working properly (peek in run_backend.sh
). If you set the postgres url to the DATABASE_URL
env var, docker compose up
should just work but lmk if it doesn't
Oops, sorry I just realized you're running the binary directly intentionally 🤦 . I got confused because we just released the docker setup so been thinking more about that. We can improve the error message there and the instructions. putting the connection string after postgres-v5
should work.and re:coolify, there may be special instructions coming out soon; we're actively working with environments like coolify
I think most of my client production server is big bare metal server. Installing docker is not an option for them. Mostly in one server, we host many application.
Great to know! I will update the docs to make it easier to get started with the binary.