#!/bin/bash # One container: the unmodified vendor shim on loopback, then the front. If either dies, the container exits and # Docker restarts it (restart: unless-stopped). The shim's own SHIM_* env (SHIM_NOUL_FLOOR etc.) passes through. set -eu python3 /model/h2o_lightning_shim.py --config /model/serve_config.json --vllm "$SHIM_VLLM" \ --host 127.0.0.1 --port "$SHIM_PORT" & SHIM=$! python3 /front/front.py & FRONT=$! wait -n "$SHIM" "$FRONT" 2>/dev/null || true kill "$SHIM" "$FRONT" 2>/dev/null || true exit 1