From d9e69e03ad051e6efb871884d23c2d489373cb29 Mon Sep 17 00:00:00 2001 From: almazlar Date: Sun, 22 Feb 2026 17:29:04 +0300 Subject: [PATCH] fix: update server port to 8080 in Dockerfile and application properties --- backend/Dockerfile | 6 +++++- backend/src/main/resources/application.properties | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 25752c6..d876d62 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -16,6 +16,10 @@ RUN apt-get update && \ apt-get install -y curl && \ rm -rf /var/lib/apt/lists/* + COPY --from=build /app/target/*.jar app.jar -EXPOSE 8082 +EXPOSE 8080 ENTRYPOINT ["java", "-jar", "app.jar"] + +HEALTHCHECK --interval=30s --timeout=3s \ + CMD curl -f http://localhost:8080/api/actuator/health || exit 1 \ No newline at end of file diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 75a05bd..edbeb5e 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -1,4 +1,4 @@ -server.port=8082 +server.port=8080 server.servlet.context-path=/api spring.application.name=backend