build: 更新构建配置以包含数据库服务 #35
| @ -145,7 +145,7 @@ subprojects { | |||||||
|             paths = listOf(File(rootProject.projectDir, "scripts").absolutePath) |             paths = listOf(File(rootProject.projectDir, "scripts").absolutePath) | ||||||
|             entrypoint = listOf( |             entrypoint = listOf( | ||||||
|                 "/bin/sh", "-c", |                 "/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 )'" |                         "'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) |             paths = listOf(File(rootProject.projectDir, "scripts").absolutePath) | ||||||
|             entrypoint = listOf( |             entrypoint = listOf( | ||||||
|                 "/bin/sh", "-c", |                 "/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 )'" |                         "'java -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )'" | ||||||
|             ) |             ) | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -44,7 +44,7 @@ services: | |||||||
|     restart: always |     restart: always | ||||||
|   llmx-core-database: |   llmx-core-database: | ||||||
|     image: postgres:16-alpine  # 长期支持版本推荐用 16 |     image: postgres:16-alpine  # 长期支持版本推荐用 16 | ||||||
|     container_name: llmx-core-database |     container_name: llmx-database | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
|       - "9052:5432" |       - "9052:5432" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user