diff --git a/apps/electrumx/data/.gitkeep b/apps/electrumx/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/electrumx/docker-compose.yml b/apps/electrumx/docker-compose.yml new file mode 100644 index 0000000..a8e9d85 --- /dev/null +++ b/apps/electrumx/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + server: + image: lukechilds/electrumx:v1.16.0 + user: "1000:1000" + init: true + restart: on-failure + stop_grace_period: 1m + ports: + - "${APP_ELECTRUMX_PORT}:50001" + volumes: + - ${APP_DATA_DIR}/data:/data + environment: + DAEMON_URL: http://${BITCOIN_RPC_USER}:${BITCOIN_RPC_PASS}@${BITCOIN_IP}:${BITCOIN_RPC_PORT} + COIN: BitcoinSegwit + networks: + default: + ipv4_address: $APP_ELECTRUMX_IP \ No newline at end of file diff --git a/scripts/configure b/scripts/configure index aabf704..95c8eab 100755 --- a/scripts/configure +++ b/scripts/configure @@ -209,6 +209,8 @@ APP_NODE_RED_IP="10.21.21.55" APP_NODE_RED_PORT="1880" APP_LNMARKETS_IP="10.21.21.58" APP_LNMARKETS_PORT="4242" +APP_ELECTRUMX_IP="10.21.21.59" +APP_ELECTRUMX_PORT="55001" # Generate RPC credentials if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then @@ -415,6 +417,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" " sed -i "s//${APP_NODE_RED_PORT}/g" "${template}" sed -i "s//${APP_LNMARKETS_IP}/g" "${template}" sed -i "s//${APP_LNMARKETS_PORT}/g" "${template}" + sed -i "s//${APP_ELECTRUMX_IP}/g" "${template}" + sed -i "s//${APP_ELECTRUMX_PORT}/g" "${template}" done ########################################################## diff --git a/templates/.env-sample b/templates/.env-sample index 612ac85..1d8db64 100644 --- a/templates/.env-sample +++ b/templates/.env-sample @@ -102,4 +102,6 @@ APP_KRYSTAL_BULL_SERVER_IP= APP_NODE_RED_IP= APP_NODE_RED_PORT= APP_LNMARKETS_IP= -APP_LNMARKETS_PORT= \ No newline at end of file +APP_LNMARKETS_PORT= +APP_ELECTRUMX_IP= +APP_ELECTRUMX_PORT= diff --git a/templates/torrc-apps-3-sample b/templates/torrc-apps-3-sample index c924ab6..d1c440e 100644 --- a/templates/torrc-apps-3-sample +++ b/templates/torrc-apps-3-sample @@ -32,3 +32,7 @@ HiddenServicePort 80 : # lnmarkets Hidden Service HiddenServiceDir /var/lib/tor/app-lnmarkets HiddenServicePort 80 : + +# electrumx Hidden Service +HiddenServiceDir /var/lib/tor/app-electrumx +HiddenServicePort 50001 :50001