Skip to content

Commit 83582e9

Browse files
committed
fix: fix binding
1 parent aeaacaf commit 83582e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/docker/entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mkdir -p /app/data
1313

1414
CONFIG_FILE="/app/litecoin.conf"
1515

16-
# Create the config file
16+
# Choose the correct config section
1717
NETWORK_SECTION="[main]"
1818
EXTRA_TESTNET=""
1919

@@ -22,7 +22,7 @@ if [ "$LTC_TESTNET" = "1" ]; then
2222
EXTRA_TESTNET="testnet=1"
2323
fi
2424

25-
touch "$CONFIG_FILE"
25+
# Write config file
2626
cat > "$CONFIG_FILE" <<EOF
2727
$NETWORK_SECTION
2828
server=1
@@ -34,6 +34,6 @@ rpcallowip=${LTC_RPCALLOWIP}
3434
prune=${LTC_PRUNE}
3535
EOF
3636

37-
38-
39-
exec litecoind -datadir=/app/data -conf="$CONFIG_FILE" "$@"
37+
# Launch litecoind with explicit bind (helps in Docker)
38+
exec litecoind -datadir=/app/data -conf="$CONFIG_FILE" \
39+
-rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 "$@"

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ services:
2222
- LTC_TESTNET=1
2323
networks:
2424
- litecoin-testnet
25+
expose:
26+
- "9332:9332"

0 commit comments

Comments
 (0)