forked from DevOps/deploy.stack
fix(newapi): 切换 Redis 连接为无密码模式
This commit is contained in:
@@ -43,6 +43,7 @@ DB_USER=newapi
|
|||||||
DB_PASSWORD=<your-strong-password>
|
DB_PASSWORD=<your-strong-password>
|
||||||
|
|
||||||
# ---------- Redis(容器内 Redis)----------
|
# ---------- Redis(容器内 Redis)----------
|
||||||
|
REDIS_HOST=redis
|
||||||
REDIS_PASSWORD=<your-strong-password>
|
REDIS_PASSWORD=<your-strong-password>
|
||||||
|
|
||||||
# ---------- new-api 应用 ----------
|
# ---------- new-api 应用 ----------
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ services:
|
|||||||
# - SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}?sslmode=disable
|
# - SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}?sslmode=disable
|
||||||
- SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}
|
- SQL_DSN=postgresql://${DB_USER:-newapi}:${DB_PASSWORD}@${DB_HOST:-postgres}:${DB_PORT:-5432}/${DB_NAME:-new_api}
|
||||||
# 默认值:REDIS_HOST=172.22.10.205 指向 Dev-Redis(dbSer/redis.yml部署,DevNet 网段固定 IP)
|
# 默认值:REDIS_HOST=172.22.10.205 指向 Dev-Redis(dbSer/redis.yml部署,DevNet 网段固定 IP)
|
||||||
- REDIS_CONN_STRING=redis://:${REDIS_PASSWORD}@${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
|
# - REDIS_CONN_STRING=redis://:${REDIS_PASSWORD}@${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
|
||||||
|
- REDIS_CONN_STRING=redis://${REDIS_HOST:-172.22.10.205}:${REDIS_PORT:-6379}
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
- BATCH_UPDATE_ENABLED=true
|
- BATCH_UPDATE_ENABLED=true
|
||||||
- ERROR_LOG_ENABLED=true
|
- ERROR_LOG_ENABLED=true
|
||||||
@@ -49,4 +50,4 @@ networks:
|
|||||||
prod-dbs_default:
|
prod-dbs_default:
|
||||||
# 引用 prod-dbs 项目自动创建的默认网络,不归本 compose 管
|
# 引用 prod-dbs 项目自动创建的默认网络,不归本 compose 管
|
||||||
external: true
|
external: true
|
||||||
name: prod-dbs_default
|
name: prod-dbs_default
|
||||||
|
|||||||
Reference in New Issue
Block a user