diff --git a/deploy/updater/entrypoint.sh b/deploy/updater/entrypoint.sh index fe45e39..071d17e 100644 --- a/deploy/updater/entrypoint.sh +++ b/deploy/updater/entrypoint.sh @@ -321,7 +321,7 @@ wait_for_health() { while (( SECONDS < deadline )); do if [[ "$health_type" == "http" ]]; then local status - status="$(curl --silent --output /dev/null --write-out '%{http_code}' --max-time 5 "$health_url" || true)" + status="$(curl --silent --location --output /dev/null --write-out '%{http_code}' --max-time 5 "$health_url" || true)" last_status="$status" if [[ "$status" == "$expect_status" ]]; then log info "target=${target_id} action=health_ok status=${status}" diff --git a/deploy/updater/targets.json.example b/deploy/updater/targets.json.example index bc630d0..420a211 100644 --- a/deploy/updater/targets.json.example +++ b/deploy/updater/targets.json.example @@ -16,7 +16,7 @@ "image": "git.shts.su/denozord/mikrotikmanager-frontend:latest", "health": { "type": "http", - "url": "http://frontend:3000/", + "url": "http://frontend:3000/dashboard", "expect_status": 200 } }