fix: correct UI container port mappings in first-boot

Bitcoin UI listens on 8334 internally (not 80), Electrs UI on 50002.
Port mappings must match: -p 8334:8334 and -p 50002:50002.
Also adds missing electrs-ui to the UI container list.
Removes --network host for bitcoin-ui which conflicted with nginx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-04-01 21:38:44 +01:00
parent e4eea40e67
commit 9a1edfb377

View File

@ -988,8 +988,9 @@ for ui in bitcoin-ui lnd-ui; do
continue
fi
case $ui in
bitcoin-ui) PORT_ARG=""; NET_ARG="--network host" ;; # host network: proxies Bitcoin RPC at 127.0.0.1:8332
bitcoin-ui) PORT_ARG="-p 8334:8334"; NET_ARG="" ;; # internal nginx listens on 8334
lnd-ui) PORT_ARG="-p 8081:80"; NET_ARG="" ;;
electrs-ui) PORT_ARG="-p 50002:50002"; NET_ARG="" ;; # internal nginx listens on 50002
esac
CONTAINER_NAME="archy-$ui"
if $DOCKER images --format '{{.Repository}}:{{.Tag}}' 2>/dev/null | grep -q "$ui"; then