|
@@ -16,7 +16,7 @@ services:
|
|
|
new-api:
|
|
new-api:
|
|
|
build:
|
|
build:
|
|
|
context: .
|
|
context: .
|
|
|
- dockerfile: Dockerfile
|
|
|
|
|
|
|
+ dockerfile: Dockerfile.backend-only # 使用仅构建后端的 Dockerfile,避免前端构建 OOM
|
|
|
container_name: new-api
|
|
container_name: new-api
|
|
|
restart: always
|
|
restart: always
|
|
|
command: --log-dir /app/logs
|
|
command: --log-dir /app/logs
|
|
@@ -29,7 +29,7 @@ services:
|
|
|
# 阿里云 MySQL 连接配置 (Aliyun MySQL Connection)
|
|
# 阿里云 MySQL 连接配置 (Aliyun MySQL Connection)
|
|
|
# 格式: username:password@tcp(host:port)/database
|
|
# 格式: username:password@tcp(host:port)/database
|
|
|
# 示例: - SQL_DSN=root:your_password@tcp(rm-xxxxx.mysql.rds.aliyuncs.com:3306)/new-api
|
|
# 示例: - SQL_DSN=root:your_password@tcp(rm-xxxxx.mysql.rds.aliyuncs.com:3306)/new-api
|
|
|
- - SQL_DSN=ai_rw:ws8oRahcYm5GwkQy@mr-y9gker44xqhwnrnv59.rwlb.singapore.rds.aliyuncs.com:3306/new-api # ⚠️ 请替换为您的阿里云 MySQL 连接信息
|
|
|
|
|
|
|
+ - SQL_DSN=ai_rw:ws8oRahcYm5GwkQy@tcp(mr-y9gker44xqhwnrnv59.rwlb.singapore.rds.aliyuncs.com:3306)/new-api # ⚠️ 请替换为您的阿里云 MySQL 连接信息
|
|
|
|
|
|
|
|
# 阿里云 Redis 连接配置 (Aliyun Redis Connection)
|
|
# 阿里云 Redis 连接配置 (Aliyun Redis Connection)
|
|
|
# 格式: redis://:password@host:port/db
|
|
# 格式: redis://:password@host:port/db
|