How to deploy Supabase on Railway?

dubple
HOBBY

2 years ago

Has anybody done this? If so how?
I noticed there is no template for Supabase.
Also apparently no support for docker-compose yml's, which are in the Supabase github repo.
Any help would be appreciated.

Solved

19 Replies

2 years ago

Currently, you are not able to deploy Supabase on Railway, as some of the services, such as Image Proxy and Image Storage require your volume to be shared across multiple services (which Railway does not support). Once Railway supports shared volumes across multiple services, a template will be provided for ease of deployment.


2 years ago

I am waiting for the team to release shared volumes so that I can finalize the Supabase template.


any update on this?


a year ago

railway does not yet support shared volumes


liviogama
HOBBY

a year ago

Still no solution about this? Not even a workaround?


lochlan
HOBBY

a year ago

+1 would love to be able to deploy Supabase on Railway


a year ago

No there is still no solution to this as of yet, and no workaround. Railway does not currently support shared volumes which are required for some of the services. As soon as this is available, we will be making a template available to everyone to self host


olsoda
TRIAL

a year ago

Maybe I misunderstood, but I think i saw volume support dropped this week. Does that mean Supabase templates are coming soon?


a year ago

Volume support for the V2 runtime is not the same as the volume support that's required to run Supabase.

We need shared volumes which means attaching the same volume to multiple services in order run Supabase.


bronogueira
TRIAL

a year ago

Hey guys.. Is this template from Bob Ambrose legit? https://railway.app/template/wj1mcU


a year ago

It is most certainly not, the supabase server attempts to run docker commands inside of the container, that isn't currently supported and has never been supported.


a year ago

update, that template has now been unpublished, you can still access it via its link, but it will no longer show up in the template deploy menu


bahmanworld
TRIAL

a year ago

Any updates?


rocketstudio
HOBBY

a year ago

I’m looking to run supabase into my railway app as well


2-fly-4-ai
HOBBY

a year ago

Yo railway? Can someone clarify if this will ever be possible. We don't need the image stuff. What's the best alternative?


a year ago

@rocketstudio

I’m looking to run supabase into my railway app as well

At this time, it's not possible as there is no support for multiple volumes on a single service, and there is no support for the same volume being shared to multiple services (in the case of the image proxy and storage). As soon as the team provides these abilities, we will be getting a template out


a year ago

@2-fly4-ai

Yo railway? Can someone clarify if this will ever be possible. We don't need the image stuff. What's the best alternative?

It will be possible, but as stated above, there are certain platforms features missing that don't make it possible at this time. The only alternative would be to run Supabase on a VPS or use their cloud offering in the meantime.


a year ago

Yo railway? Can someone clarify if this will ever be possible. We don't need the image stuff. What's the best alternative?

Have you tryed something like pocketbase? It's also a good alternative. Railway has a template for that: https://railway.app/template/XfUmjI

Has a database, auth build in. And file uploads (using S3) It's worth to check out


rocketstudio
HOBBY

a year ago

Yo railway? Can someone clarify if this will ever be possible. We don't need the image stuff. What's the best alternative?

Have you tryed something like pocketbase? It's also a good alternative. Railway has a template for that: https://railway.app/template/XfUmjI

Has a database, auth build in. And file uploads (using S3) It's worth to check out

In my case I have a lot of projects into supabase and I love Railway so would be great to be together, deploy supabase with a single click into Railway 🫶


xl0
HOBBY

a year ago

Any chance we could get a template without the features that depend on shared volumes? I just want a Postgres with a nice UI. :)


aaa3334
TRIAL

7 months ago

Any updates? I would love to be able to self host supabase on this as it would mean the delay for data would be a lot lower (and the standard postgres database is a massive pain to work with)


7 months ago

My apologies for not updating this thread, but there is now a Supabase template, just without the features the platform can't yet support.

Try it out - https://railway.com/template/supabase

Send your feedback here - https://help.railway.com/templates/supabase-studio-db-auth-3f732608


sr0m
PRO

6 months ago

Just to be clear, this is not a managed service from Railway? We would be responsible for uptime/scaling/backups?


6 months ago

Correct, In fact, In the interest of transparency, we do not offer any managed databases, management stops at the container level.


randomusername010
FREE

2 months ago

any updates? Many users have been asking for years for this. I still have never signed up because this isn't a possibility yet.


2 months ago

A template was posted here 5 months ago. If that doesn’t suit your needs, then Railway is not the platform for supabase at this time.


Status changed to Solved brody about 2 months ago


tacg78952
PRO

a month ago

I'm trying this new template you post it but the studio is not running, there's any place I can get more info about it?


a month ago

the template should have a discussion page linked on the page. You can ask questions about it there


a month ago

Or, open a new help thread


How to deploy Supabase on Railway? - Railway Help Station