Can’t figure out what is the correct postgres url when hosting with Coolify. Everything is up and running. I have only changed the service name to db
and kong domain to https://mywebsite.com:8000
Coolify is hosted on ubuntu vps_1 and through Coolify I deployed Supabase on ubuntu vps_2
What’s the correct postgres url?
npx supabase db push --db-url "postgres://user:[email protected]:5432/postgres"
My environment variables:
POSTGRES_DB=postgres
POSTGRES_HOST=supabase-db
POSTGRES_PORT=5432
SERVICE_PASSWORD_POSTGRES=***
2
Answers
your url is correct
npx supabase db push –db-url "postgres://user:[email protected]:5432/postgres"
but you need to add port mapping in the compose file under the supabase-db image
like
this worked for me
thought the port is soppose to map to database port to 5050
it did not but worked in the default port 5432.so do this exactly and use the same url with port 5432
Edit the docker-compose file using the button: Edit Docker Compose
the button is located beside
Service Stack
In the
supabase-db
section add the mapping:This will expose the 5433
Example of JDBC connection:
Remember to enable the
5433
port in your firewall if you have one.