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.
 
 
BT 13d2851026
Need docker to access the docker socket ;)
4 years ago
.github/workflows Change branch build 4 years ago
Dockerfile Need docker to access the docker socket ;) 4 years ago
LICENSE License 4 years ago
README.md Merge branch 'master' into rpcpass-variable-patch 4 years ago
switch.sh fix $INFO passing to jq 4 years ago

README.md

LND Neutrino Switch Contrainer

Docker Pulls Count

Clone directory

docker pull lncm/neutrino-switcher

If using docker-compose

  • Container name of LND needs to match the environment variable defined (if not lnd)

Files/Folders it needs access to

You may map these anywhere in your filesystem. For best results works best with a similar setup to this one

  • /secrets/rpcpass.txt (Bitcoin RPC Password. Not used if RPCPASS variable is explicitly defined)
  • /lnd/lnd.conf (LND configuration. For best results write access please)
  • /statuses/ (Write access)
  • /var/run/docker.sock (is mapped correctly so it can restart the container)

Environment Variables

Other than that everything should be in the default paths.

  • RPCPASS (default: whatever is set in /secrets/rpcpass.txt .) - If we set this, we do not need to link rpcpass.txt (this is generated by configure-box.sh by the box configure script)
  • JSONRPCURL (Default: http://10.254.2.2:8332) : Is the JSON-RPC interface for bitcoind
  • LND_CONTAINER_NAME (Default: lnd) : is the container name to restart
  • SLEEPTIME (Default: 3600) : Configures how often to poll. Ideally we should set this high so we minimize disruptions, but we might want to set it lower for testing.