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.
39 lines
1.0 KiB
39 lines
1.0 KiB
6 years ago
|
# 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
|