fix(docker): honor HINDSIGHT_CP_HOSTNAME for control-plane startup (#590)

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
abix5 2026-03-16 18:19:40 +03:00 committed by GitHub
parent e7da7d0e4f
commit 8a64dc8db6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,6 +111,7 @@ fi
if [ "$ENABLE_CP" = "true" ]; then if [ "$ENABLE_CP" = "true" ]; then
echo "🎛️ Starting Control Plane..." echo "🎛️ Starting Control Plane..."
cd /app/control-plane cd /app/control-plane
export HOSTNAME="${HINDSIGHT_CP_HOSTNAME:-0.0.0.0}"
PORT="${HINDSIGHT_CP_PORT:-9999}" node server.js & PORT="${HINDSIGHT_CP_PORT:-9999}" node server.js &
CP_PID=$! CP_PID=$!
PIDS+=($CP_PID) PIDS+=($CP_PID)