Adding bitcoin-node....

This commit is contained in:
b0xxer
2024-02-09 10:19:13 -06:00
parent d338b83925
commit 107c028bdb
6 changed files with 114 additions and 0 deletions
@@ -0,0 +1,22 @@
[Unit]
Description=Bitcoin Node
[Container]
# Use the centos image
Image={{ registry_url }}/bitcoin:{{ bitcoin_version }}
PodmanArgs=--pod bitcoin-pod
# Use volume
Volume=/home/{{ansible_user}}/.bitcoin:/bitcoin/.bitcoin:Z
[Service]
# Restart service when sleep finishes
Restart=always
# Extend Timeout to allow time to pull the image
TimeoutStartSec=900
# ExecStartPre flag and other systemd commands can go here, see systemd.unit(5) man page.
# ExecStartPre=/usr/share/mincontainer/setup.sh
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
+34
View File
@@ -0,0 +1,34 @@
# network
mainnet=1
testnet=0
# server
server=1
listen=1
listenonion=0
daemon=0
txindex=0
prune=0
disablewallet=1
printtoconsole=1
# rpc
rpcuser=bitcoinrpc
rpcpassword={{ bitcoin_password }}
#rpcconnect=127.0.0.1
#rpcport=8332
#rpcauth=xxx
# performance
dbcache=2000
maxconnections=40
maxuploadtarget=5000
# tor
#proxy=127.0.0.1:9050
#seednode=nkf5e6b7pl4jfd4a.onion
#seednode=xqzfakpeuvrobvpj.onion
#seednode=tsyvzsqwa2kkf6b2.onion
# validation
reindex-chainstate=0