build: 更新构建配置以包含数据库服务 #35

Merged
gewuyou merged 1 commits from dev into test 2025-05-10 14:40:39 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ subprojects {
paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
entrypoint = listOf(
"/bin/sh", "-c",
"/entrypoint.sh -d llmx-nacos:8848 -c " +
"/entrypoint.sh -d llmx-nacos:8848,llmx-database:9052 -c " +
"'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'"
)
}
@ -157,7 +157,7 @@ subprojects {
paths = listOf(File(rootProject.projectDir, "scripts").absolutePath)
entrypoint = listOf(
"/bin/sh", "-c",
"/entrypoint.sh -d llmx-nacos:8848 -c " +
"/entrypoint.sh -d llmx-nacos:8848,llmx-database:9052 -c " +
"'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'"
)
}

View File

@ -44,7 +44,7 @@ services:
restart: always
llmx-core-database:
image: postgres:16-alpine # 长期支持版本推荐用 16
container_name: llmx-core-database
container_name: llmx-database
restart: always
ports:
- "9052:5432"