The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Complete Test Server
Angelico2712c57f6b3a
diff --git a/test/docker-compose.yml b/test/docker-compose.ymlindex c883fa0be5a..b6329e60e9a 100644--- a/test/docker-compose.yml+++ b/test/docker-compose.yml@@ -10,4 +10,29 @@ services:POSTGRES_USER: supabasePOSTGRES_PASSWORD: postgresPOSTGRES_PORT: 5432-\ No newline at end of file+ rest:+ image: postgrest/postgrest+ depends_on:+ - db+ restart: always+ ports:+ - "3000:3000"+ environment:+ PGRST_DB_URI: postgres://supabase:postgres@db:5432/supabase+ PGRST_DB_SCHEMA: public+ PGRST_DB_ANON_ROLE: supabase+ kong:+ build: ./kong+ ports:+ - "8000:8000/tcp"+ - "8443:8443/tcp"+ restart: on-failure+ depends_on:+ - rest+ environment:+ KONG_ADMIN_ACCESS_LOG: /dev/stdout+ KONG_ADMIN_ERROR_LOG: /dev/stderr+ KONG_PROXY_ACCESS_LOG: /dev/stdout+ KONG_PROXY_ERROR_LOG: /dev/stderr+ KONG_ADMIN_LISTEN: 0.0.0.0:8001+\ No newline at end of filediff --git a/test/kong/Dockerfile b/test/kong/Dockerfilenew file mode 100644index 00000000000..f47d6fe005b--- /dev/null+++ b/test/kong/Dockerfile@@ -0,0 +1,11 @@+FROM kong:latest++COPY kong.yml /var/lib/kong/kong.yml++ENV KONG_DATABASE=off+ENV KONG_DECLARATIVE_CONFIG=/var/lib/kong/kong.yml++EXPOSE 8000+EXPOSE 8001+EXPOSE 8443+EXPOSE 8444\ No newline at end of filediff --git a/test/kong/kong.yml b/test/kong/kong.ymlnew file mode 100644index 00000000000..9d401086d61--- /dev/null+++ b/test/kong/kong.yml@@ -0,0 +1,85 @@+# ------------------------------------------------------------------------------+# This is an example file to get you started with using+# declarative configuration in Kong.+# ------------------------------------------------------------------------------++# Metadata fields start with an underscore (_)+# Fields that do not start with an underscore represent Kong entities and attributes++# _format_version is mandatory,+# it specifies the minimum version of Kong that supports the format++_format_version: "1.1"++# Each Kong entity (core entity or custom entity introduced by a plugin)+# can be listed in the top-level as an array of objects:++services:+ #### POSTGREST CONFIGURATION+ - name: rest-v0+ _comment: "Points to the PostgREST server."+ url: http://rest:3000/+ routes:+ - name: rest-v0-all+ strip_path: true+ paths:+ - /rest/v0/+ tags:+ - postgrest+ plugins:+ - name: cors+++# services:+# - name: example-service+# url: http://example.com+# # Entities can store tags as metadata+# tags:+# - example+# # Entities that have a foreign-key relationship can be nested:+# routes:+# - name: example-route+# paths:+# - /+# plugins:+# - name: key-auth+# - name: another-service+# url: https://example.org++# routes:+# - name: another-route+# # Relationships can also be specified between top-level entities,+# # either by name or by id+# service: example-service+# hosts: ["hello.com"]++# consumers:+# - username: example-user+# # Custom entities from plugin can also be specified+# # If they specify a foreign-key relationshp, they can also be nested+# keyauth_credentials:+# - key: my-key+# plugins:+# - name: rate-limiting+# _comment: "these are default rate-limits for user example-user"+# config:+# policy: local+# second: 5+# hour: 10000++# When an entity has multiple foreign-key relationships+# (e.g. a plugin matching on both consumer and service)+# it must be specified as a top-level entity, and not through+# nesting.++# plugins:+# - name: rate-limiting+# consumer: example-user+# service: another-service+# _comment: "example-user is extra limited when using another-service"+# config:+# hour: 2+# # tags are for your organization only and have no meaning for Kong:+# tags:+# - extra_limits+# - my_tag