DEV Community

Discussion on: Self-hosting with Supabase

Collapse
 
christopherkapic profile image
CK

Truly a fantastic resource Scott! Would you mind if I made a video walkthrough of this article? I'll link back to it in the description.

Collapse
 
chronsyn profile image
Scott P

Absolutely! Be sure to post a link here and I'll add it to the article!

Collapse
 
christopherkapic profile image
CK

One question--Portainer and Kong both use port 8000. How did you handle this?

 
chronsyn profile image
Scott P

The Supabase stack is on it's own network and I believe this is what prevents the routing from getting confused. Portainer uses ports 8000 and 9000 - 9000 is for the GUI, and 8000 is an SSH tunnel server used to create a tunnel between portainer agents and the portainer instance.

My Nginx config points towards the Kong instance (e.g. proxy_pass http://supabase-kong:8000;), which in turn handles routing to each individual service. The portainer container, being on a separate network, doesn't even know that the Supabase stack exists at the network level.

 
Sloan, the sloth mascot
Comment deleted
Collapse
 
benquan profile image
Ben

Did you ever publish the video?