You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
503 B

3 years ago
#!/bin/bash
##########################
# Set host.docker.internal
sudo /usr/bin/append-to-hosts "$(ip -4 route list match 0/0 | awk '{print $3 "\thost.docker.internal"}')"
echo Running modified mainnet script...
export BTC_RPC_PORT=${BITCOIN_RPC_PORT}
export ELECTRS_HOST=${ELECTRUM_IP}
export ELECTRS_PORT=${ELECTRUM_PORT}
# docker-compose.yml also passes the folllowing env vars:
# $BITCOIN_RPC_USER, $BITCOIN_RPC_PASS, $BITCOIN_RPC_AUTH,
# and $BITCOIN_IP
3 years ago
export PROXY_PORT=50002
node src/server.js