Browse Source

Add experimental electrumx app

specter-1.7.1
Luke Childs 3 years ago
parent
commit
718ac00885
  1. 0
      apps/electrumx/data/.gitkeep
  2. 19
      apps/electrumx/docker-compose.yml
  3. 4
      scripts/configure
  4. 4
      templates/.env-sample
  5. 4
      templates/torrc-apps-3-sample

0
apps/electrumx/data/.gitkeep

19
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

4
scripts/configure

@ -209,6 +209,8 @@ APP_NODE_RED_IP="10.21.21.55"
APP_NODE_RED_PORT="1880" APP_NODE_RED_PORT="1880"
APP_LNMARKETS_IP="10.21.21.58" APP_LNMARKETS_IP="10.21.21.58"
APP_LNMARKETS_PORT="4242" APP_LNMARKETS_PORT="4242"
APP_ELECTRUMX_IP="10.21.21.59"
APP_ELECTRUMX_PORT="55001"
# Generate RPC credentials # Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then 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>/${APP_NODE_RED_PORT}/g" "${template}" sed -i "s/<app-node-red-port>/${APP_NODE_RED_PORT}/g" "${template}"
sed -i "s/<app-lnmarkets-ip>/${APP_LNMARKETS_IP}/g" "${template}" sed -i "s/<app-lnmarkets-ip>/${APP_LNMARKETS_IP}/g" "${template}"
sed -i "s/<app-lnmarkets-port>/${APP_LNMARKETS_PORT}/g" "${template}" sed -i "s/<app-lnmarkets-port>/${APP_LNMARKETS_PORT}/g" "${template}"
sed -i "s/<app-electrumx-ip>/${APP_ELECTRUMX_IP}/g" "${template}"
sed -i "s/<app-electrumx-port>/${APP_ELECTRUMX_PORT}/g" "${template}"
done done
########################################################## ##########################################################

4
templates/.env-sample

@ -102,4 +102,6 @@ APP_KRYSTAL_BULL_SERVER_IP=<app-krystal-bull-server-ip>
APP_NODE_RED_IP=<app-node-red-ip> APP_NODE_RED_IP=<app-node-red-ip>
APP_NODE_RED_PORT=<app-node-red-port> APP_NODE_RED_PORT=<app-node-red-port>
APP_LNMARKETS_IP=<app-lnmarkets-ip> APP_LNMARKETS_IP=<app-lnmarkets-ip>
APP_LNMARKETS_PORT=<app-lnmarkets-port> APP_LNMARKETS_PORT=<app-lnmarkets-port>
APP_ELECTRUMX_IP=<app-electrumx-ip>
APP_ELECTRUMX_PORT=<app-electrumx-port>

4
templates/torrc-apps-3-sample

@ -32,3 +32,7 @@ HiddenServicePort 80 <app-node-red-ip>:<app-node-red-port>
# lnmarkets Hidden Service # lnmarkets Hidden Service
HiddenServiceDir /var/lib/tor/app-lnmarkets HiddenServiceDir /var/lib/tor/app-lnmarkets
HiddenServicePort 80 <app-lnmarkets-ip>:<app-lnmarkets-port> HiddenServicePort 80 <app-lnmarkets-ip>:<app-lnmarkets-port>
# electrumx Hidden Service
HiddenServiceDir /var/lib/tor/app-electrumx
HiddenServicePort 50001 <app-electrumx-ip>:50001

Loading…
Cancel
Save