Open trieska opened 5 months ago
ok, I think that I find way how to do it. I did start container with network mode host, so container internal localhost is also host localhost.
here is my compose file
version: '3'
services:
btc-rpc-explorer:
image: btc-rpc-explorer:3.4.0
container_name: btc-rpc-explorer
user: 1000:984
environment:
- BTCEXP_BASEURL=/
- BTCEXP_HOST=0.0.0.0
- BTCEXP_BITCOIND_USER=username
- BTCEXP_BITCOIND_PASS=pass_of_user
- BTCEXP_BITCOIND_RPC_TIMEOUT=9000
- BTCEXP_SLOW_DEVICE_MODE=true
- BTCEXP_BASIC_AUTH_PASSWORD=just_a_word
- BTCEXP_DISPLAY_CURRENCY=btc
- BTCEXP_LOCAL_CURRENCY=eur
- BTCEXP_UI_TIMEZONE=local
restart: unless-stopped
network_mode: host
and in bitcoin.conf I keep just this rpcauth=__USER__:__hash_pass__ # this is tested and working
and did remove all other rpc related configs
I am running archlinux on server and several services in docker and also native bitcoind. I am not able to install native btc-rpc-explorer arch package because known issue with node 21 and zeromq.
so lets try docker for btc-rpc-explorer, I did following steps:
git close ...
git checkout v3.4.0
docker buildx build -t btc-rpc-explorer:3.4.0 .
here is my compose
here is part of bitcoind.conf:
I did test rpc connection from laptop with curl and its pass and works ok
here is docker log from btc-rpc-explorer
thanks for help, tip ...