SupabaseKong

SupabaseKong

官方

Docker 应用程序 from Raccommode's Repository

概述

Kong is the API gateway used by the official self-hosted Supabase Docker stack. It routes Studio, Auth, REST, GraphQL, Realtime, Storage, and Edge Functions through a single public endpoint.

要求

This template runs only the Kong gateway container from the official Supabase Docker Compose stack. It requires the Supabase kong.yml and kong-entrypoint.sh files from supabase/docker/volumes/api mounted below. It does not install Studio, Auth, PostgREST, Realtime, Storage, Edge Runtime, Postgres Meta, or Postgres. Put all Supabase containers on the same custom Docker network and make sure the service hostnames used inside kong.yml, such as studio, auth, rest, realtime, storage, functions, and meta, resolve to the matching containers. Generate new Supabase keys before first use; never keep the example keys.

运行时参数

网络用户界面
http://[IP]:[PORT:8000]
网络
bridge
外壳
bash
特权
false
额外参数
--entrypoint=/bin/bash

模板配置

HTTP Gateway PortPorttcp

Supabase HTTP API gateway port. Container port: 8000.

目标
8000
默认值
8000
价值
8000
HTTPS Gateway PortPorttcp

Supabase HTTPS API gateway port. Container port: 8443. Mount TLS files and set Kong SSL variables if you enable direct TLS here.

目标
8443
默认值
8443
价值
8443
Kong ConfigPathro

Official Supabase Kong declarative config copied from supabase/docker/volumes/api/kong.yml.

目标
/home/kong/temp.yml
默认值
/mnt/user/appdata/supabase-kong/kong.yml
价值
/mnt/user/appdata/supabase-kong/kong.yml
Kong EntrypointPathro

Official Supabase Kong entrypoint copied from supabase/docker/volumes/api/kong-entrypoint.sh.

目标
/home/kong/kong-entrypoint.sh
默认值
/mnt/user/appdata/supabase-kong/kong-entrypoint.sh
价值
/mnt/user/appdata/supabase-kong/kong-entrypoint.sh
TLS CertificatePathro

Optional TLS certificate for direct HTTPS on Kong. Usually a reverse proxy terminates TLS instead.

目标
/home/kong/server.crt
TLS Private KeyPathro

Optional TLS private key for direct HTTPS on Kong. Usually a reverse proxy terminates TLS instead.

目标
/home/kong/server.key
Database ModeVariable

Kong database mode. Supabase uses declarative DB-less config.

目标
KONG_DATABASE
默认值
off
价值
off
Declarative Config PathVariable

Generated Kong config path inside the container.

目标
KONG_DECLARATIVE_CONFIG
默认值
/usr/local/kong/kong.yml
价值
/usr/local/kong/kong.yml
DNS OrderVariable

Kong DNS resolution order used by the Supabase stack.

目标
KONG_DNS_ORDER
默认值
LAST,A,CNAME
价值
LAST,A,CNAME
DNS Not Found TTLVariable

Kong DNS negative cache TTL in seconds.

目标
KONG_DNS_NOT_FOUND_TTL
默认值
1
价值
1
PluginsVariable

Kong plugins required by the Supabase gateway config.

目标
KONG_PLUGINS
默认值
request-transformer,cors,key-auth,acl,basic-auth,request-termination,ip-restriction,post-function
价值
request-transformer,cors,key-auth,acl,basic-auth,request-termination,ip-restriction,post-function
Proxy Buffer SizeVariable

Kong Nginx proxy buffer size used by the Supabase stack.

目标
KONG_NGINX_PROXY_PROXY_BUFFER_SIZE
默认值
160k
价值
160k
Proxy BuffersVariable

Kong Nginx proxy buffers used by the Supabase stack.

目标
KONG_NGINX_PROXY_PROXY_BUFFERS
默认值
64 160k
价值
64 160k
Proxy Access LogVariable

Kong proxy access log target.

目标
KONG_PROXY_ACCESS_LOG
默认值
/dev/stdout combined
价值
/dev/stdout combined
SSL Certificate PathVariable

Optional TLS certificate path inside the container, for example /home/kong/server.crt.

目标
KONG_SSL_CERT
SSL Key PathVariable

Optional TLS private key path inside the container, for example /home/kong/server.key.

目标
KONG_SSL_CERT_KEY
Anon KeyVariable

Legacy anon API key generated for the Supabase stack.

目标
SUPABASE_ANON_KEY
Service Role KeyVariable

Legacy service role API key. Never expose this key to client-side code.

目标
SUPABASE_SERVICE_KEY
Publishable KeyVariable

Optional opaque publishable API key for newer self-hosted Supabase setups.

目标
SUPABASE_PUBLISHABLE_KEY
Secret KeyVariable

Optional opaque secret API key for newer self-hosted Supabase setups. Never expose this key to client-side code.

目标
SUPABASE_SECRET_KEY
Anon Asymmetric KeyVariable

Optional pre-signed asymmetric JWT API key for the anon role.

目标
ANON_KEY_ASYMMETRIC
Service Role Asymmetric KeyVariable

Optional pre-signed asymmetric JWT API key for the service_role role.

目标
SERVICE_ROLE_KEY_ASYMMETRIC
Dashboard UsernameVariable

Basic auth username for Supabase Studio through Kong.

目标
DASHBOARD_USERNAME
默认值
supabase
价值
supabase
Dashboard PasswordVariable

Basic auth password for Supabase Studio through Kong. Set a secure password before first start.

目标
DASHBOARD_PASSWORD

详细信息

存储库
kong/kong:3.9.1
最后更新2026-05-31
初见2026-05-24

在Unraid 上运行 SupabaseKong 。

SupabaseKong 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。