diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 968fe95..ff8065d 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -12,7 +12,7 @@ services: rabbitmq: condition: service_healthy food-ai: - condition: service_started + condition: service_healthy socket: condition: service_started ports: @@ -81,7 +81,7 @@ services: container_name: food-ai networks: [ my-network ] healthcheck: - test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8000/healthz || exit 1"] + test: ["CMD", "python", "-c", "import urllib.request,sys; r=urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=5); sys.exit(0 if r.getcode()==200 else 1)"] interval: 15s timeout: 5s retries: 12 diff --git a/src/main/java/com/example/timetoeat/global/auth/handler/LoginSuccessHandler.java b/src/main/java/com/example/timetoeat/global/auth/handler/LoginSuccessHandler.java index fb9f45a..69bf537 100644 --- a/src/main/java/com/example/timetoeat/global/auth/handler/LoginSuccessHandler.java +++ b/src/main/java/com/example/timetoeat/global/auth/handler/LoginSuccessHandler.java @@ -26,7 +26,7 @@ public class LoginSuccessHandler implements AuthenticationSuccessHandler { public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { CustomOauth2User principal = (CustomOauth2User) authentication.getPrincipal(); if (principal.isSignupRequired()) { - response.sendRedirect("https://bab-muk-dang-client.vercel.app/"); + response.sendRedirect("https://bab-muk-dang-client.vercel.app/onboarding"); return; }