Blockstream / Blockstream/esplora
Expose API during Docker deployment
- Dominant language
- JavaScript
- Stars
- 1.3k
- Forks
- 514
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 16
Description
I am running the esplora Docker image as per the README with the API port exposed:
```sh
$ docker run -p 50001:50001 -p 8094:80 -p 3000:3000 \
--volume $PWD/data_bitcoin_regtest:/data \
--rm -i -t -e blockstream/esplora bash -c "/srv/explorer/run.sh bitcoin-regtest explorer"
```
But in this configuration, there is no access to the API from the outside, which I would want. I have tried all kinds of hacks, but it seems there is no way to do this without creating a custom electrs Docker image? As per [this](https://bitcoin.stackexchange.com/questions/91746/configure-esplora-to-point-to-the-bitcoind-servers-ip-address/91859#91859) and [this issue](#339).
Accessing the API fails (it is set to 127.0.0.1:3000 instead of 0.0.0.0:3000, so understandable, but why not changeable?):
```sh
$ curl localhost:3000
curl: (56) Recv failure: Connection reset by peer
```
Trying access through the web interface just returns HTML:
```
$ curl http://localhost:8094/api/blocks/tip/
Bitcoin Regtest Explorer......
```
Any help would be appreciated. Is there an easy way to expose the API?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.