diff --git a/Dockerfile b/Dockerfile index 7844a1f..80992d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ WORKDIR /app COPY target/LPT.jar LPT.jar # 暴露应用运行的端口 -EXPOSE 5157 +EXPOSE 8888 # 启动应用 ENTRYPOINT ["java", "-jar", "LPT.jar"] # 健康检查 -HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:5157/actuator/health || exit 1 +HEALTHCHECK --interval=10s --timeout=5s CMD curl --fail http://localhost:8888/actuator/health || exit 1 diff --git a/Jenkinsfile b/Jenkinsfile index 8927ebd..92f742e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { IMAGE_NAME = 'lpt-prod:0.0' CONTAINER_NAME = 'LPT-prod' HOST_PORT = '5157' - CONTAINER_PORT = '5157' + CONTAINER_PORT = '8888' } stages { stage('Build') { diff --git a/Jenkinsfile-dev b/Jenkinsfile-dev index ed6cd13..4b826fa 100644 --- a/Jenkinsfile-dev +++ b/Jenkinsfile-dev @@ -4,7 +4,7 @@ pipeline { IMAGE_NAME = 'lpt-dev:0.0' CONTAINER_NAME = 'LPT-dev' HOST_PORT = '5155' - CONTAINER_PORT = '5155' + CONTAINER_PORT = '8888' } stages { stage('Build') { diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index d66d8a6..aea6a3a 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy5157 server: - port: 5155 + port: 8888 cors: allowCredentials: true diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 4555500..31c650a 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy.5157 server: - port: 5157 + port: 8888 cors: allowed-origins: diff --git a/src/main/resources/application-uat.yml b/src/main/resources/application-uat.yml index 3e28ea1..e440077 100644 --- a/src/main/resources/application-uat.yml +++ b/src/main/resources/application-uat.yml @@ -6,7 +6,7 @@ spring: username: root password: GUOxy5157 server: - port: 5156 + port: 8888 cors: allowed-origins: