Adding bitcoin-node....
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user