coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
26.26k stars 1.33k forks source link

[Bug]: Supabase servide doesn't allow to change kong port or run in localhost #2515

Open DiegoBM opened 3 weeks ago

DiegoBM commented 3 weeks ago

Description

While trying to test coolify with Supabase, installing on the same localhost (I know it's not recommended but it should be doable), if yu try to edit the Kong port 8000, Coolify won't allow you to do it, the host changes all right after saving, but the port will always be reverted to port 8000 which conflics with Coolify.

This works fine with the Appwrite service for example

Minimal Reproduction (if possible, example repository)

If I manually edit the compose file to get the KONG_HTTP_PORT and configure the environment variables manually to set the KONG_HTTP_PORT=9000and some other settings like the external urls, then I can manage to make it work in localhost

Exception or Error

No error, port gets reverted back to 8000 after saving

Version

v4.0.0-beta.294

ray-bun commented 3 weeks ago

Where do you add the KONG_HTTP_PORT? I'm getting Kong Error Invalid authentication credentials.

DiegoBM commented 3 weeks ago

If you click "Edit Compose File", I add it for the supabase-kong service, adding a "ports section":

services:
  supabase-kong:
    image: 'kong:2.8.1'
      .....
    ports:
      - '${KONG_HTTP_PORT}:8000/tcp'
    environment:
      .....

After that I add it to the environment variables section