docker build -t zouchao2010/insight-api .
docker pull zouchao2010/insight-api
mkdir -p /data/insight-api/db/testnet
mkdir -p /data/insight-api/db/livenet
docker run --name insight-api \
-h insight-api \
-p 3000:3000 \
-v /data/insight-api:/var/lib/insight-api/data \
-e BITCOIND_HOST=x.x.x.x \
-e BITCOIND_P2P_HOST=x.x.x.x \
-e INSIGHT_NETWORK=livenet \
-e BITCOIND_USER=user \
-e BITCOIND_PASS=pass \
-e INSIGHT_PUBLIC_PATH=public \
-e ENABLE_HTTPS=false \
-e INSIGHT_FORCE_RPC_SYNC=1 \
-it --rm zouchao2010/insight-api
docker run --name insight-api \
-h insight-api \
-p 3000:3000 \
-v /data/insight-api:/var/lib/insight-api/data \
-e BITCOIND_HOST=x.x.x.x \
-e BITCOIND_P2P_HOST=x.x.x.x \
-e INSIGHT_NETWORK=livenet \
-e BITCOIND_USER=user \
-e BITCOIND_PASS=pass \
-e INSIGHT_PUBLIC_PATH=public \
-e ENABLE_HTTPS=false \
-e INSIGHT_FORCE_RPC_SYNC=1 \
-dt zouchao2010/insight-api
docker start|stop|restart insight-api
docker exec -it insight-api /bin/bash
Content type
Image
Digest
sha256:31d7e2776…
Size
331.6 MB
Last updated
about 11 years ago
docker pull zouchao2010/insight-api