How to deploy Supabase on Railway?

AnonymousTRIAL

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.

18 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


liviogamaHOBBY

a year ago

Still no solution about this? Not even a workaround?


lochlanHOBBY

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


olsodaTRIAL

10 months ago

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


10 months 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.


bronogueiraTRIAL

10 months ago

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


10 months 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.


10 months 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


bahmanworldTRIAL

9 months ago

Any updates?


rocketstudioHOBBY

9 months ago

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


2-fly-4-aiHOBBY

8 months ago

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


8 months 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


8 months 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.


8 months 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


rocketstudioHOBBY

8 months 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 🫶


xl0HOBBY

8 months 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. :)


aaa3334TRIAL

4 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)


4 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


sr0mPRO

3 months ago

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


3 months ago

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