Update health check URL and adjust app port mapping in Docker configuration
This commit is contained in:
@@ -83,7 +83,7 @@ jobs:
|
|||||||
# ── Health check ──
|
# ── Health check ──
|
||||||
echo "Waiting for app..."
|
echo "Waiting for app..."
|
||||||
sleep 5
|
sleep 5
|
||||||
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8000/api/v1/health)
|
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8080/api/v1/health)
|
||||||
if [ "$HTTP_CODE" -eq 200 ]; then
|
if [ "$HTTP_CODE" -eq 200 ]; then
|
||||||
echo "✅ API is healthy (HTTP ${HTTP_CODE})"
|
echo "✅ API is healthy (HTTP ${HTTP_CODE})"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8080:8000"
|
||||||
env_file:
|
env_file:
|
||||||
- path: .env
|
- path: .env
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
Reference in New Issue
Block a user