fix: avoid Temporal UI port collision
This commit is contained in:
parent
e37781b5c1
commit
2a5912f174
|
|
@ -41,6 +41,10 @@ Traefik exposes JSON access logs and Prometheus request metrics. Prometheus
|
|||
scrapes the Traefik metrics endpoint as the `traefik` job, with entrypoint and
|
||||
service labels enabled.
|
||||
|
||||
The Temporal UI is bound to `127.0.0.1:8233` by default because Debian uses
|
||||
port 8088 for the provisioning service. Override it during deployment with
|
||||
`JEANNIE_TEMPORAL_UI_PORT` if needed.
|
||||
|
||||
For a LAN test after the edge/DNS certificate is available, use the host's
|
||||
LAN address or a local DNS override. Direct backend testing remains:
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@ install_dir="${JEANNIE_PHASE2_INSTALL_DIR:-/opt/jeannie}"
|
|||
repo_root="${JEANNIE_PHASE2_REPO_ROOT:-${install_dir}/repo}"
|
||||
server_addr="${JEANNIE_SERVER_ADDR:-0.0.0.0:8787}"
|
||||
server_token="${JEANNIE_SERVER_TOKEN:?JEANNIE_SERVER_TOKEN is required}"
|
||||
temporal_ui_port="${JEANNIE_TEMPORAL_UI_PORT:-8233}"
|
||||
|
||||
if ! [[ "${temporal_ui_port}" =~ ^[0-9]+$ ]] || ((temporal_ui_port < 1 || temporal_ui_port > 65535)); then
|
||||
echo "JEANNIE_TEMPORAL_UI_PORT must be a TCP port between 1 and 65535." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
command -v docker >/dev/null 2>&1 || { echo 'Docker is required on Debian' >&2; exit 1; }
|
||||
command -v go >/dev/null 2>&1 || { echo 'Go is required on Debian' >&2; exit 1; }
|
||||
|
|
@ -14,6 +20,13 @@ sudo cp infra/jeannie-temporal/docker-compose.yml "${install_dir}/docker-compose
|
|||
sudo cp -R . "${repo_root}/"
|
||||
sudo chown -R "$(id -u):$(id -g)" "${repo_root}"
|
||||
|
||||
if command -v ss >/dev/null 2>&1 &&
|
||||
ss -H -ltn "sport = :${temporal_ui_port}" 2>/dev/null | grep -q . &&
|
||||
! sudo docker ps -a --filter name=jeannie-temporal-ui --format '{{.Names}}' | grep -q .; then
|
||||
echo "TCP port ${temporal_ui_port} is already in use; set JEANNIE_TEMPORAL_UI_PORT to an unused loopback port." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd "${repo_root}"
|
||||
GOTOOLCHAIN=local go mod tidy
|
||||
GOTOOLCHAIN=local go mod verify
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ services:
|
|||
environment:
|
||||
TEMPORAL_ADDRESS: temporal:7233
|
||||
ports:
|
||||
- "127.0.0.1:8088:8080"
|
||||
- "127.0.0.1:${JEANNIE_TEMPORAL_UI_PORT:-8233}:8080"
|
||||
|
||||
volumes:
|
||||
temporal-postgres:
|
||||
|
|
|
|||
Loading…
Reference in New Issue