fix(docker): 修正环境变量注释和Redis密码配置格式
- 更新MySQL配置注释,说明连接字符串由run.sh构建 - 更新Redis配置注释,说明连接字符串由run.sh构建 - 修改Redis密码环境变量为字符串格式,避免为空值错误 - 保持其他环境变量和端口映射不变
This commit is contained in:
+3
-3
@@ -47,15 +47,15 @@ services:
|
||||
- "8080:80"
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
# MySQL配置(docker-entrypoint.sh会自动构建连接字符串)
|
||||
# MySQL配置(run.sh会自动构建连接字符串)
|
||||
- MYSQL_HOST=web_mysql
|
||||
- MYSQL_PORT=3306
|
||||
- MYSQL_DATABASE=comcms
|
||||
- MYSQL_USER=comcms
|
||||
- MYSQL_PASSWORD=comcms123
|
||||
# Redis配置(docker-entrypoint.sh会自动构建连接字符串)
|
||||
# Redis配置(run.sh会自动构建连接字符串)
|
||||
- REDIS_HOST=web_redis
|
||||
- REDIS_PASSWORD=
|
||||
- REDIS_PASSWORD=""
|
||||
- REDIS_DB=2
|
||||
- REDIS_INSTANCE_NAME=COMCMS:
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user