coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Supabase db expose port

Open apertureless opened this issue 1 year ago • 7 comments

Description

I have deployed the supabase application, mostly with default settings. In order to push db migrations from the location supabase instance, I need to specify the --db-url

supabase db push --db-url="postgres://postgre[...]

In order for this to work, I have to expose the db port in coolify.

In the DB container I have set a public port and checked the checkbox "Make it publicly available". But the port is not exposed. Also if I set a name for the container, it keeps the old

Minimal Reproduction (if possible, example repository)

  1. Create supabase application
  2. Go to Settings in DB container
  3. Set public port
  4. "Set Make it publicly available"

Exception or Error

Port not exposed

Version

v4.0.0-beta.265

apertureless avatar Apr 23 '24 09:04 apertureless

Just found, that even if I create the destination via Servers -> other server -> Destinations, they always get created on localhost

Markus-Ende avatar Apr 24 '24 10:04 Markus-Ende

you can update the service compose yaml to expose the port

Geczy avatar Apr 28 '24 16:04 Geczy

you can update the service compose yaml to expose the port

i have same issue . i tried to add ports in compose file but the coolify version dont have it .so the coolify parsing of the file is ignoring ports by default.

no other solutions?

boyhax avatar May 05 '24 17:05 boyhax

make a new project and copy the docker compose yaml for supabase and add the ports

Geczy avatar May 05 '24 22:05 Geczy

you can update the service compose yaml to expose the port

i have same issue . i tried to add ports in compose file but the coolify version dont have it .so the coolify parsing of the file is ignoring ports by default.

no other solutions?

i've managed to get it work that way:

    ports:
      - '5432:5432'

on the supabase-db service.

zilahir avatar May 06 '24 19:05 zilahir

you can update the service compose yaml to expose the port

Yeah, but I would assume the UI checkbox would do the same.

apertureless avatar May 13 '24 09:05 apertureless

Having the same issue with the MongoDB service - checking the "publicly available" box doesn't open it on the specified port

CarefulGuru avatar May 22 '24 22:05 CarefulGuru

I think once you select 'Make it publicly available' it creates an nginx docker container that does the forwarding (@andrasbacsai correct me if I'm wrong :) ) - however, mine is stuck in a restarting loop (may or may not be the same sort of issue).

Before enabling CleanShot 2024-06-07 at 12 00 49

After enabling CleanShot 2024-06-07 at 12 01 42

logs error:

2024/06/07 11:01:58 [emerg] 1#1: invalid port in upstream "m0s8w4s:" in /etc/nginx/nginx.conf:12
nginx: [emerg] invalid port in upstream "m0s8w4s:" in /etc/nginx/nginx.conf:12

Ryan-andpro-digital avatar Jun 07 '24 11:06 Ryan-andpro-digital

having the same problem here.

you can update the service compose yaml to expose the port

Yeah, but I would assume the UI checkbox would do the same.

I unchecked the make public box to avoid port conflict, then did this. it worked !

yaberkane05 avatar Jun 15 '24 13:06 yaberkane05