Browse Source

Add utilities

migrate-pregen
nicolas.dorier 7 years ago
parent
commit
fa8d38d583
  1. 16
      README.md
  2. 1
      bitcoin-cli.ps1
  3. 3
      bitcoin-cli.sh
  4. 1
      litecoin-cli.ps1
  5. 3
      litecoin-cli.sh

16
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)
[![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
```

1
bitcoin-cli.ps1

@ -0,0 +1 @@
docker exec -ti btcpayserver_bitcoind bitcoin-cli -datadir="/data" $args

3
bitcoin-cli.sh

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -ti btcpayserver_bitcoind bitcoin-cli -datadir="/data" "$@"

1
litecoin-cli.ps1

@ -0,0 +1 @@
docker exec -ti btcpayserver_litecoind litecoin-cli -datadir="/data" $args

3
litecoin-cli.sh

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -ti btcpayserver_litecoind litecoin-cli -datadir="/data" "$@"
Loading…
Cancel
Save