This repo only used to build ElectrumX
image. You can read this as reference, but deploy Atomicals RPC endpoint using this repo https://github.com/Next-DAO/atomicals-electrumx-proxy-docker
本项目仅用来构建 ElectrumX
镜像,可以作为参考,但是部署 Atomicals RPC 节点请使用这个项目 https://github.com/Next-DAO/atomicals-electrumx-proxy-docker
Aim to provide a simple and easy way to run atomicals-electrumx server.
Dockerfile is based on Dockerfile from Official Repository
- Bitcoin Full Node
- At least 100G left in your storage.
Add this to your bitcoin.conf, and restart your bitcoin full node.
assuming your lan ip is 192.168.50.2
txindex=1
rpcauth=electrumx:c7ed296134ebe0035d9ff786dfa102b5$9d40e8e36bcdba1e3ca0a79178c3864c3deaa9e6fd484ff683e7770690a97097
rpcbind=0.0.0.0
rpcallowip=127.0.0.1
rpcallowip=172.0.0.0/8
rpcallowip=192.168.50.2
txindex=1
is required for ElectrumX to work. You need wait for full node to reindex.- You can also download script from https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py. And generate one by yourself.
git clone https://github.com/lucky2077/atomicals-electrumx-docker.git
cd atomicals-electrumx-docker
Create an .env
file with content below:
DAEMON_URL=electrumx:[email protected]:8332
Then run the ElectrumX server:
docker-compose pull && docker-compose up -d
- use
docker-compose logs -f
to check the logs. - use
docker-compose down
to stop the server.
NOTE
- You should stop here until the server is fully synced.
- The
data
directory will be more than 90G after sync.