diff --git a/README.md b/README.md index 4bfdd90..5921bff 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,18 @@ The [Production](Production) `docker-compose` is used for production environment The production `docker-compose` is used under the hood to deploy an instance of BTCPay on Microsoft Azure in one click: -[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fbtcpayserver%2Fbtcpayserver-azure%2Fmaster%2Fazuredeploy.json) \ No newline at end of file +[![Deploy to Azure](https://azuredeploy.net/deploybutton.svg)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fbtcpayserver%2Fbtcpayserver-azure%2Fmaster%2Fazuredeploy.json) + +# About accessing services inside those docker compose + +Several scripts are provided to access the internal of your docker-service. + +`litecoin-cli.sh` and `litecoin-cli.ps1` let you access your litecoin node CLI. + +`bitcoin-cli.sh` and `bitcoin-cli.ps1` let you access your bitcoin node CLI. + +You can use it easily: + +``` +bitcoin-cli.sh getblockcount +``` \ No newline at end of file diff --git a/bitcoin-cli.ps1 b/bitcoin-cli.ps1 new file mode 100755 index 0000000..6ea421b --- /dev/null +++ b/bitcoin-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_bitcoind bitcoin-cli -datadir="/data" $args diff --git a/bitcoin-cli.sh b/bitcoin-cli.sh new file mode 100755 index 0000000..fd2b78f --- /dev/null +++ b/bitcoin-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_bitcoind bitcoin-cli -datadir="/data" "$@" diff --git a/litecoin-cli.ps1 b/litecoin-cli.ps1 new file mode 100755 index 0000000..032c7a3 --- /dev/null +++ b/litecoin-cli.ps1 @@ -0,0 +1 @@ +docker exec -ti btcpayserver_litecoind litecoin-cli -datadir="/data" $args diff --git a/litecoin-cli.sh b/litecoin-cli.sh new file mode 100755 index 0000000..e39176d --- /dev/null +++ b/litecoin-cli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker exec -ti btcpayserver_litecoind litecoin-cli -datadir="/data" "$@"