From 73f889ac9fd24238a3cf26af1b499179ba7d8c62 Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 15 Mar 2024 07:11:05 +0100 Subject: [PATCH 1/3] Fix realtime container name and env var --- templates/compose/supabase.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/compose/supabase.yaml b/templates/compose/supabase.yaml index 39d9f5f24..0fd2faf90 100644 --- a/templates/compose/supabase.yaml +++ b/templates/compose/supabase.yaml @@ -942,6 +942,7 @@ services: - GOTRUE_SMS_AUTOCONFIRM=${ENABLE_PHONE_AUTOCONFIRM:-true} supabase-realtime: # This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain + container_name: realtime-dev.supabase-realtime image: supabase/realtime:v2.25.50 depends_on: supabase-db: @@ -961,7 +962,7 @@ services: - DB_USER=supabase_admin - DB_PASSWORD=${SERVICE_PASSWORD_POSTGRES} - DB_NAME=${POSTGRES_DB:-supabase} - - DB_AFTER_CONNECT_QUERY='SET search_path TO _realtime' + - DB_AFTER_CONNECT_QUERY=SET search_path TO _realtime - DB_ENC_KEY=supabaserealtime - API_JWT_SECRET=${SERVICE_PASSWORD_JWT} - FLY_ALLOC_ID=fly123 From 1894573c2fd4aa6ba4e78faeecff7a2c708e9343 Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 15 Mar 2024 09:19:30 +0100 Subject: [PATCH 2/3] Change service name directly --- templates/compose/supabase.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/compose/supabase.yaml b/templates/compose/supabase.yaml index 0fd2faf90..0b2d868e2 100644 --- a/templates/compose/supabase.yaml +++ b/templates/compose/supabase.yaml @@ -940,9 +940,10 @@ services: - GOTRUE_EXTERNAL_PHONE_ENABLED=${ENABLE_PHONE_SIGNUP:-true} - GOTRUE_SMS_AUTOCONFIRM=${ENABLE_PHONE_AUTOCONFIRM:-true} - supabase-realtime: + realtime-dev.supabase-realtime: # This container name looks inconsistent but is correct because realtime constructs tenant id by parsing the subdomain - container_name: realtime-dev.supabase-realtime + # Name of service has to be changed as coolify is generating container names automatically + # container_name: realtime-dev.supabase-realtime image: supabase/realtime:v2.25.50 depends_on: supabase-db: From 350e32326fa79075dad1677281450cc88f87960f Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 15 Mar 2024 13:25:49 +0100 Subject: [PATCH 3/3] Fix app name of realtime for logging --- templates/compose/supabase.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/supabase.yaml b/templates/compose/supabase.yaml index 0b2d868e2..af61c35db 100644 --- a/templates/compose/supabase.yaml +++ b/templates/compose/supabase.yaml @@ -663,7 +663,7 @@ services: kong: 'starts_with(string!(.appname), "supabase-kong")' auth: 'starts_with(string!(.appname), "supabase-auth")' rest: 'starts_with(string!(.appname), "supabase-rest")' - realtime: 'starts_with(string!(.appname), "supabase-realtime")' + realtime: 'starts_with(string!(.appname), "realtime-dev.supabase-realtime")' storage: 'starts_with(string!(.appname), "supabase-storage")' functions: 'starts_with(string!(.appname), "supabase-functions")' db: 'starts_with(string!(.appname), "supabase-db")'