https://supabase.com/ logo
#help
Title
# help
d

Deleted User

12/22/2021, 9:02 PM
How do I create multiple projects on a self-hosted instance of Supabase?
l

Lavka

12/22/2021, 9:46 PM
You need to Spinnup the whole stack for each project separately from what I understand.
s

Scott P

12/22/2021, 10:27 PM
This is correct in most use cases. However, depending upon your project requirements and whether you want users being able to log into multiple projects, you could use 1 schema for each different project.
d

Deleted User

12/22/2021, 11:25 PM
That's actually a great suggestion! I still feel like it would be good to have the option for multiple projects, though.
s

Scott P

12/23/2021, 4:49 AM
It's actually really uncommon for a DBaaS to allow multiple projects in a instance. Firebase, Fauna, Mongo, Supabase on their hosted platform - they all create one instance for each project. Perhaps another option would be to create a set of base docker images and then figure out some dynamic port mapping during deployment. You might even be able to just separate each set of containers into their own Docker network and then use and Nginx container attached to both networks to decide how you want them to be exposed externally (e.g.
api.example.com
=>
supabase-api-rest:8080
on
network_1
, and
application.example.com
=>
supabase-application-rest:8080
on
network_2
). I'm not sure how feasible that'd be, but it should be possible
d

Deleted User

12/23/2021, 11:04 AM
Sounds like it's possible but just more trouble than it's worth. I'll stick to your idea from here though: https://discord.com/channels/839993398554656828/923319612244889621/923341091208593489