-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a c5.2xlarge EC2 instance to speed up Initial Blockchain Download. The result is then pruned and copied to the normal instance. dbcache=40000 should be more than enough (currently needs about 7 GB) maxuploadtarget=10000 although not much upload happens during IBD and the instance only lives for a few hour, this caps upload fees to ~$1 per day just in case.
- Loading branch information
Showing
2 changed files
with
200 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
version: "3" | ||
|
||
services: | ||
bitcoind: | ||
restart: always | ||
image: bitcoind:0.16.0 | ||
environment: | ||
BITCOIN_EXTRA_ARGS: | | ||
${NBITCOIN_NETWORK:-testnet}=1 | ||
rpcport=18332 | ||
rpcuser=bitcoin | ||
rpcpassword=bitcoin | ||
rpcallowip=0.0.0.0/0 | ||
server=1 | ||
dbcache=40000 | ||
maxuploadtarget=10000 | ||
expose: | ||
- "8333" # Bitcoin Mainnet | ||
- "18333" # Bitcoin Testnet | ||
- "18332" # Bitcoin RPC | ||
ports: | ||
- "${BITCOIN_P2P_PORT:-18333}:18333" | ||
volumes: | ||
- /root/bitcoin:/home/bitcoin/.bitcoin | ||
networks: | ||
- bitcoin | ||
|
||
bitcoin-cli: | ||
image: bitcoind:0.16.0 | ||
environment: | ||
BITCOIN_EXTRA_ARGS: | | ||
${NBITCOIN_NETWORK:-testnet}=1 | ||
rpcport=18332 | ||
rpcuser=bitcoin | ||
rpcpassword=bitcoin | ||
entrypoint: ["/entrypoint.sh", "bitcoin-cli"] | ||
command: "" | ||
depends_on: | ||
- bitcoind | ||
network_mode: service:bitcoind | ||
volumes: | ||
- /root/bitcoin:/home/bitcoin/.bitcoin | ||
|
||
networks: | ||
bitcoin: |