autocomit
This commit is contained in:
+5
-1
@@ -22,5 +22,9 @@ COPY --from=build /app/target/*.jar app.jar
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
||||
CMD wget --quiet --tries=1 --spider http://localhost:8080/api/actuator/health || exit 1
|
||||
|
||||
# Run the application
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||
+4
-1
@@ -54,7 +54,10 @@
|
||||
<artifactId>postgresql</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||
</dependency>
|
||||
<!-- Liquibase -->
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
|
||||
@@ -43,3 +43,12 @@ logging:
|
||||
level:
|
||||
com.ldpv2: DEBUG
|
||||
org.springframework.security: DEBUG
|
||||
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: health
|
||||
endpoint:
|
||||
health:
|
||||
show-details: when-authorized
|
||||
Reference in New Issue
Block a user