Skip to content

Commit e5b475a

Browse files
authored
🐛 fix When deploying, the mirror sources of db, kong, and auth in mainland China are not configured.
2 parents 2139e23 + b2b2400 commit e5b475a

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

docker/.env.general

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ POSTGRESQL_IMAGE=postgres:15-alpine
77
REDIS_IMAGE=redis:alpine
88
MINIO_IMAGE=quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
99
OPENSSH_SERVER_IMAGE=nexent/nexent-ubuntu-terminal:latest
10+
11+
SUPABASE_KONG=kong:2.8.1
12+
SUPABASE_GOTRUE=supabase/gotrue:v2.170.0
13+
SUPABASE_DB=supabase/postgres:15.8.1.060

docker/.env.mainland

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ POSTGRESQL_IMAGE=docker.m.daocloud.io/postgres:15-alpine
77
REDIS_IMAGE=docker.m.daocloud.io/redis:alpine
88
MINIO_IMAGE=quay.m.daocloud.io/minio/minio:RELEASE.2023-12-20T01-00-02Z
99
OPENSSH_SERVER_IMAGE=ccr.ccs.tencentyun.com/nexent-hub/nexent-ubuntu-terminal:latest
10+
11+
SUPABASE_KONG=docker.m.daocloud.io/kong:2.8.1
12+
SUPABASE_GOTRUE=docker.m.daocloud.io/supabase/gotrue:v2.170.0
13+
SUPABASE_DB=docker.m.daocloud.io/supabase/postgres:15.8.1.060

docker/docker-compose-supabase.prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
kong:
33
container_name: supabase-kong-mini
4-
image: kong:2.8.1
4+
image: ${SUPABASE_KONG}
55
restart: unless-stopped
66
volumes:
77
- $ROOT_DIR/volumes/api/kong.yml:/home/kong/temp.yml
@@ -35,7 +35,7 @@ services:
3535

3636
auth:
3737
container_name: supabase-auth-mini
38-
image: supabase/gotrue:v2.170.0
38+
image: ${SUPABASE_GOTRUE}
3939
restart: unless-stopped
4040
healthcheck:
4141
test:
@@ -87,7 +87,7 @@ services:
8787

8888
db:
8989
container_name: supabase-db-mini
90-
image: supabase/postgres:15.8.1.060
90+
image: ${SUPABASE_DB}
9191
restart: unless-stopped
9292
volumes:
9393
- $ROOT_DIR/volumes/db/realtime.sql:/docker-entrypoint-initdb.d/migrations/99-realtime.sql

docker/docker-compose-supabase.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
kong:
33
container_name: supabase-kong-mini
4-
image: kong:2.8.1
4+
image: ${SUPABASE_KONG}
55
restart: unless-stopped
66
ports:
77
- "8000:8000/tcp"
@@ -38,7 +38,7 @@ services:
3838

3939
auth:
4040
container_name: supabase-auth-mini
41-
image: supabase/gotrue:v2.170.0
41+
image: ${SUPABASE_GOTRUE}
4242
restart: unless-stopped
4343
healthcheck:
4444
test:
@@ -89,9 +89,9 @@ services:
8989

9090
db:
9191
container_name: supabase-db-mini
92-
image: supabase/postgres:15.8.1.060
92+
image: ${SUPABASE_DB}
9393
restart: unless-stopped
94-
# 暴露数据库端口,以便直连管理
94+
# Expose the database port for direct connection management
9595
ports:
9696
- ${SUPABASE_POSTGRES_PORT}:${SUPABASE_POSTGRES_PORT}
9797
volumes:

0 commit comments

Comments
 (0)