diff --git a/dockerfiles/theia/src/entrypoint.sh b/dockerfiles/theia/src/entrypoint.sh index 165c52750..d344b0e9c 100755 --- a/dockerfiles/theia/src/entrypoint.sh +++ b/dockerfiles/theia/src/entrypoint.sh @@ -51,6 +51,10 @@ else fi fi +if [ -z "$THEIA_HOST" ]; then + THEIA_HOST="0.0.0.0" +fi + # SITTERM / SIGINT responsible_shutdown() { echo "" @@ -77,7 +81,7 @@ fi shopt -u nocasematch # run Che Theia -node src-gen/backend/main.js /projects --hostname=0.0.0.0 --port=${THEIA_PORT} & +node src-gen/backend/main.js /projects --hostname=${THEIA_HOST} --port=${THEIA_PORT} & PID=$!