fork-explorer
fork-explorer copied to clipboard
Dockerfile for building and running in a container.
Build with docker build -t fork-explorer . Example for docker-compose.yml:
fork-explorer:
image: fork-explorer
depends_on:
- bitcoind
environment:
- BITCOIND_RPC_URL=http://bitcoind:8332
- BITCOIND_RPC_USER=user
- BITCOIND_RPC_PASSWORD=secret
- FORK_NAME=Taproot testnet
- FORK_THRESHOLD=1512
ports:
- "80:8080"
I changed the config.ts_TEMPLATE to use variables and moved the example values to comments. If you'd rather not change the template, then I guess we need to add another one for Docker.
TODO:
- [ ] optimize image size
- [ ] tighten permission (don't run as root)
- [ ] somehow use a Docker secret for RPC auth (will probably require help from fork-explorer)