Skip to content

Commit bbe6ac9

Browse files
committed
feat(docker): add pg-meta
1 parent ca35cbc commit bbe6ac9

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

docker/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ services:
101101
# TODO: https://github.com/supabase/storage-api/issues/55
102102
REGION: stub
103103
GLOBAL_S3_BUCKET: stub
104+
pg-meta:
105+
container_name: supabase-pg-meta
106+
image: supabase/postgres-meta:v0.26.1
107+
depends_on:
108+
- db
109+
restart: unless-stopped
110+
environment:
111+
PG_META_PORT: 8080
112+
PG_META_DB_HOST: db
113+
PG_META_DB_PASSWORD: ${POSTGRES_PASSWORD}
104114
db:
105115
container_name: supabase-db
106116
image: supabase/postgres:13.3.0

docker/volumes/kong.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ services:
6767
config:
6868
hide_credentials: false
6969
- name: storage-v1
70-
_comment: "Storage: /storage/v1/* -> http://storage-api:5000/*"
70+
_comment: "Storage: /storage/v1/* -> http://storage:5000/*"
7171
url: http://storage:5000/
7272
routes:
7373
- name: storage-v1-all
@@ -76,6 +76,19 @@ services:
7676
- /storage/v1/
7777
plugins:
7878
- name: cors
79+
- name: pg-meta
80+
_comment: "pg-meta: /pg/* -> http://pg-meta:8080/*"
81+
url: http://pg-meta:8080/
82+
routes:
83+
- name: pg-meta-all
84+
strip_path: true
85+
paths:
86+
- /pg/
87+
plugins:
88+
- name: cors
89+
- name: key-auth
90+
config:
91+
hide_credentials: true
7992
consumers:
8093
- username: anon
8194
keyauth_credentials:

0 commit comments

Comments
 (0)