Cannot self host two supabase instances at the same time #37444
Replies: 5 comments
-
|
You're facing this issue because |
Beta Was this translation helpful? Give feedback.
-
|
Yes, indeed that's how I fixed it. The problem is that the vector config is hardcoding the |
Beta Was this translation helpful? Give feedback.
-
|
Ya, this would make things easier for setting up multiple instances on same server. |
Beta Was this translation helpful? Give feedback.
-
|
@singh-inder I created this repo with a small docs, with everything I found out. Hope this can be helpful! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @andrybicio - thanks for opening this one and for your repo. I'll move this over as a discussion so other users can see. Thanks again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Describe the bug
Cannot have two self hosted supabase instances running at the same time as
container_namevalue are equal.To Reproduce
Simply clone two supabase projects and try to spin the containers up after commenting or remapping the values in
portskey of the original docker compose.Note that if those are commented, then one has to expose port 8443 and 8000 of
kongservice.Expected behavior
Like the supabase-cli, after running the docker-compose up -d in the main folder, I expect that the either the project name or any unique identifier is appended to the container name so that names do not conflict.
After making some research, even though services have the same name (e.g., kong), they should not conflict with each other as long as they stay in different networks. A possible solution is to use aliases for the service to distinguish them if they happen to be in the same network, like for example if using a reverse proxy.
However, the
vectorservice loads the declarative config file volumes/logs/vector.yml, makes use of the docker container_name to make the routing of the logs.This is somehow related to
supabase/cli#28
Beta Was this translation helpful? Give feedback.
All reactions