From 83d1bec422b7b2e8e70e6d1acf89f01f30b24c97 Mon Sep 17 00:00:00 2001 From: zerosaturation Date: Sun, 14 Jun 2026 22:41:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=92=8C=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=8C=BA=E5=88=86=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E7=9A=84=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/dev.sh | 2 +- docker/.env.local | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/dev.sh b/backend/dev.sh index abbfd9b..beb7541 100755 --- a/backend/dev.sh +++ b/backend/dev.sh @@ -85,7 +85,7 @@ DB_HOST="${DB_HOST:-localhost}" DB_PORT="${DB_PORT:-15432}" DB_USER="${DB_USER:-postgres}" DB_PASSWORD="${DB_PASSWORD:-123456}" -DB_NAME="${DB_NAME:-topfans}" +DB_NAME="${DB_NAME:-top-fans}" REDIS_HOST="${REDIS_HOST:-localhost}" REDIS_PORT="${REDIS_PORT:-6379}" REDIS_PASSWORD="${REDIS_PASSWORD:-123456}" diff --git a/docker/.env.local b/docker/.env.local index 7bbc03c..bc158f2 100644 --- a/docker/.env.local +++ b/docker/.env.local @@ -5,8 +5,11 @@ # Usage: docker-compose -f docker-compose.local.yml --profile local up -d # =================================================================== -# Database (must match POSTGRES_PASSWORD in compose file) -DB_PASSWORD=postgres123 +# Database - 本地连接 host.docker.internal:15432 上的 postgres +# (注意:本仓库 docker-compose.local.yml 不起 postgres 容器,共用宿主机上由 +# sofaware-docker/PostgreSql 起的 postgresql-database-1,密码 123456,库名 top-fans) +DB_PASSWORD=123456 +DB_NAME=top-fans # JWT Secret - CHANGE IN PRODUCTION JWT_SECRET=topfans-secret-key-local-dev-only