Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(self-hosted): improve kong config for logging and dns lookups (#43874)

Andrey A.d06756968031
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index ee2b4028e8b..0f0e7058edf 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -27,8 +27,6 @@ services:
depends_on:
analytics:
condition: service_healthy
- kong:
- condition: service_healthy
environment:
# Binds nestjs listener to both IPv4 and IPv6 network interfaces
HOSTNAME: "::"
@@ -83,6 +81,9 @@ services:
interval: 5s
timeout: 5s
retries: 5
+ depends_on:
+ studio:
+ condition: service_healthy
ports:
- ${KONG_HTTP_PORT}:8000/tcp
- ${KONG_HTTPS_PORT}:8443/tcp
@@ -97,9 +98,11 @@ services:
KONG_DECLARATIVE_CONFIG: /usr/local/kong/kong.yml
# https://github.com/supabase/cli/issues/14
KONG_DNS_ORDER: LAST,A,CNAME
+ KONG_DNS_NOT_FOUND_TTL: 1
KONG_PLUGINS: request-transformer,cors,key-auth,acl,basic-auth,request-termination,ip-restriction,post-function
KONG_NGINX_PROXY_PROXY_BUFFER_SIZE: 160k
KONG_NGINX_PROXY_PROXY_BUFFERS: 64 160k
+ KONG_PROXY_ACCESS_LOG: /dev/stdout combined
#KONG_SSL_CERT: /home/kong/server.crt
#KONG_SSL_CERT_KEY: /home/kong/server.key
SUPABASE_ANON_KEY: ${ANON_KEY}