File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ mkdir -p /app/data
1313
1414CONFIG_FILE=" /app/litecoin.conf"
1515
16- # Create the config file
16+ # Choose the correct config section
1717NETWORK_SECTION=" [main]"
1818EXTRA_TESTNET=" "
1919
@@ -22,7 +22,7 @@ if [ "$LTC_TESTNET" = "1" ]; then
2222 EXTRA_TESTNET=" testnet=1"
2323fi
2424
25- touch " $CONFIG_FILE "
25+ # Write config file
2626cat > " $CONFIG_FILE " << EOF
2727$NETWORK_SECTION
2828server=1
@@ -34,6 +34,6 @@ rpcallowip=${LTC_RPCALLOWIP}
3434prune=${LTC_PRUNE}
3535EOF
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 " $@ "
Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ services:
2222 - LTC_TESTNET=1
2323 networks :
2424 - litecoin-testnet
25+ expose :
26+ - " 9332:9332"
You can’t perform that action at this time.
0 commit comments