fix: update Dockerfile, application properties, and controller mappings for health check and CORS support
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m38s

This commit is contained in:
almazlar
2026-02-22 14:08:31 +03:00
parent b5dcba1e11
commit 386f5137c6
8 changed files with 37 additions and 20 deletions

View File

@@ -22,7 +22,7 @@ services:
build: ./backend
container_name: todo-backend
ports:
- "8082:8080"
- "8082:8082"
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/tododb
- SPRING_DATASOURCE_USERNAME=postgres
@@ -31,7 +31,7 @@ services:
db:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1"]
test: ["CMD-SHELL", "curl -f http://localhost:8082/api/actuator/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
@@ -43,7 +43,8 @@ services:
ports:
- "5173:80"
depends_on:
- backend
backend:
condition: service_healthy
volumes: