Open encryptblockr opened 1 year ago
anyone willing to help?
I'm using it without problems in mempoolexplorer.com. but I haven't pushed the code yet.
can you please share what you did? here is my bitcoin.conf
file
testnet=0
regtest=0
server=1
rpcuser=test-user
rpcpassword=test-password
rpcport=8332
maxconnections=32
printtoconsole=1
prune=1024
zmqpubrawblock=tcp://127.0.0.1:3000
zmqpubrawtx=tcp://127.0.0.1:3000
zmqpubhashtx=tcp://127.0.0.1:3000
zmqpubhashblock=tcp://127.0.0.1:3000
here is docker-compose.yaml
version: '3.9'
services:
bitcoin:
image: kylemanna/bitcoind
restart: always
container_name: bitcoin
volumes:
- ./bitcoin.conf:/bitcoin/.bitcoin/bitcoin.conf
- bitcoin-data:/bitcoin/.bitcoin
ports:
- 8333:8333 #p2p network
- 8332:8332 #rpc
- 3000:3000 #zeromq
volumes:
bitcoin-data:
name: bitcoin-data
and here is how i ran the container
docker compose -p bitcoin -f docker-compose.yaml up -d --build
but it is not working when i try to connect to it via port 3000
can you please tell me what i need to do or change for it to work? will really appreciate it thanks
The code of mempoolexplorer.com is in https://github.com/mempoolexplorer/mempoolexplorer My bitcoin.conf is below.
# [rpc]
# Username for JSON-RPC connections
rpcuser=*******
# Password for JSON-RPC connections
rpcpassword=**********
# rpc ips allowed
rpcallowip=192.168.1.39
rpcallowip=192.168.3.2
rpcallowip=172.18.0.2
rpcallowip=172.18.0.5
maxmempool=2000
# Accept transaction replace-by-fee without requiring replaceability signaling.
mempoolfullrbf=1
# Set database cache size in megabytes; machines sync faster with a larger cache. Recommend setting as high as possible based upon machine's available RAM.
dbcache=4000
# Maintain a full transaction index, used by the getrawtransaction rpc call.
txindex=1
# zmq publication
zmqpubsequence=tcp://172.18.0.5:29000
[main]
rpcbind=172.18.0.5
rpcbind=localhost
bind=127.0.0.1
disablewallet=1
# network
onion=127.0.0.1:9050
#onlynet=onion
listen=1
did you read what my issue is? also i am looking for what i have wrong or need to fix you sent me what you have for bitcoin.conf without saying anything of my situation
i am unable to reach the port 3000, so not sure what am doing wrong or if i missed a setting
@dev7ba ???
@petertodd
can you help with way to fix my issue? am i missing certain bitcon.conf settings to be able have the zeromq listing on port 3000?
will appreciate it, thanks
Trying to setup websocket connection to bitcoin node based on the zeromq documentation here https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md
does this docker image support zeromq setup?