How do I create multiple projects on a self-hosted...
# help
d
How do I create multiple projects on a self-hosted instance of Supabase?
l
You need to Spinnup the whole stack for each project separately from what I understand.
s
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
That's actually a great suggestion! I still feel like it would be good to have the option for multiple projects, though.
s
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
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