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