build(biji-houdaun): 更新 Docker 配置和健康检查端口
- 修改健康检查端口:将 Dockerfile 中的健康检查 URL 从 http://localhost:8082/actuator/health 更改为 http://localhost:8083/actuator/health - 更新 Docker 主机:将 pom.xml 中的 dockerHost 从 http://45.204.212.245:2375 更改为 http://127.0.0.1:2375- 调整资源目录:
This commit is contained in:
@@ -143,11 +143,9 @@
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>1.2.2</version>
|
||||
<configuration>
|
||||
<imageName>${project.artifactId}</imageName>
|
||||
<dockerHost>http://45.204.212.245:2375</dockerHost>
|
||||
<dockerHost>http://127.0.0.1:2375</dockerHost>
|
||||
<!-- 指定使用外部Dockerfile -->
|
||||
<dockerDirectory>src/main/java/com/test/docker</dockerDirectory>
|
||||
<!-- <dockerDirectory>${project.basedir}</dockerDirectory>-->
|
||||
|
||||
<!-- 保留资源复制配置 -->
|
||||
<resources>
|
||||
@@ -158,7 +156,7 @@
|
||||
</resource>
|
||||
<resource>
|
||||
<targetPath>/data</targetPath>
|
||||
<directory>${project.basedir}</directory>
|
||||
<directory>${project.basedir}/..</directory>
|
||||
<include>mydatabase.db</include>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user