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
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m38s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user