kenshin-samourai
6 years ago
5 changed files with 94 additions and 11 deletions
@ -0,0 +1,38 @@ |
|||
# MyDojo - Advanced Setups |
|||
|
|||
## Expose bitcoind RPC API ans ZMQ notifications to external apps ## |
|||
|
|||
By default, access to the RPC API of your bitcoind is restricted to Docker containers hosted on the "dojonet" network. |
|||
|
|||
The following steps allow to expose the RPC API ans ZMQ notifications to applications running on your local machine but outside of Docker. |
|||
|
|||
``` |
|||
# |
|||
# If your Docker runs on macos or windows, |
|||
# retrieve the local IP address of the VM |
|||
# hosting your Docker containers |
|||
# |
|||
|
|||
# Stop your Dojo |
|||
./dojo.sh stop |
|||
|
|||
# Edit the bitcoin config file |
|||
nano ./conf/docker-bitcoind.conf |
|||
|
|||
# |
|||
# Set the value of BITCOIND_RPC_EXTERNAL to "on" |
|||
# |
|||
# If your Docker runs on macos or windows, |
|||
# set the value of BITCOIND_RPC_EXTERNAL_IP to the IP address of the VM |
|||
# |
|||
# Save and exit nano |
|||
# |
|||
|
|||
# Start your Dojo |
|||
./dojo.sh start |
|||
``` |
|||
|
|||
With this setting, external applications running on your local machine but outside of Docker should be able to access the following ports: |
|||
* 9501: bitcoind zmqpubrawtx notifications |
|||
* 9502: bitcoind zmqpubhashblock notifications |
|||
* 28256: bitcoind RPC API |
@ -0,0 +1,8 @@ |
|||
version: "3.2" |
|||
|
|||
services: |
|||
bitcoind: |
|||
ports: |
|||
- "${BITCOIND_RPC_EXTERNAL_IP}:28256:28256" |
|||
- "${BITCOIND_RPC_EXTERNAL_IP}:9501:9501" |
|||
- "${BITCOIND_RPC_EXTERNAL_IP}:9502:9502" |
Loading…
Reference in new issue