continued working on lnbits
This commit is contained in:
parent
3788e43b0b
commit
33d4fac979
4
hosts
4
hosts
@ -22,7 +22,7 @@ zerotier_network=
|
||||
|
||||
[n0xb0x:vars]
|
||||
hostname=n0xb0x
|
||||
app_list=['bitcoin.yml','electrs.yml','clightning.yml','rtl.yml', 'docs.yml']
|
||||
app_list=['bitcoin.yml','electrs.yml','clightning.yml','lnbits.yml','rtl.yml', 'docs.yml']
|
||||
ansible_user=n0xb0x
|
||||
ansible_password=n0xb0x
|
||||
#registry_url=git.boxxy.net/b0xxer/
|
||||
@ -37,6 +37,7 @@ bitcoin_rpcpassword=8BaOf-luoLM-5zA8V0ozLOtqzZZch2knK9gWIBfafDw
|
||||
bitcoin_rpcauth=n0xb0x:413f1f82906117464e662853bce33577$80a039d800184a1cffd1de5468b5b2a7442ab1d368a13782e5283e575a9f57b2
|
||||
electrs_version=0.10.2
|
||||
rtl_version=0.15.0
|
||||
lnbits_version=0.12.1
|
||||
zerotier_network=
|
||||
#Update wariness - 1 = very reluctant to update, 0 = eager to update
|
||||
#timezone - which timezone update schedule is in
|
||||
@ -50,3 +51,4 @@ update_schedule_starttime="03:00"
|
||||
update_schedule_length=60
|
||||
disable_rebuilds=true
|
||||
|
||||
|
||||
|
||||
34
roles/apps/tasks/lnbits.yml
Normal file
34
roles/apps/tasks/lnbits.yml
Normal file
@ -0,0 +1,34 @@
|
||||
---
|
||||
|
||||
# Task list for lnbits
|
||||
#
|
||||
- name: lnbits - Create lnbits directory in containers
|
||||
ansible.builtin.file:
|
||||
path: ~/containers/lnbits
|
||||
state: directory
|
||||
|
||||
- name: lnbits - Copy Containerfile
|
||||
ansible.builtin.template:
|
||||
src: lnbits/Containerfile.j2
|
||||
dest: ~/containers/lnbits/Containerfile
|
||||
|
||||
- name: lnbits - Copy lnbits-node.container
|
||||
ansible.builtin.template:
|
||||
src: lnbits/lnbits-node.container.j2
|
||||
dest: ~/containers/lnbits/lnbits-node.container
|
||||
|
||||
- name: lnbits - Copy build.sh
|
||||
ansible.builtin.template:
|
||||
src: lnbits/build.sh.j2
|
||||
dest: ~/containers/lnbits/build.sh
|
||||
mode: '0700'
|
||||
|
||||
- name: lnbits - Copy .env file
|
||||
ansible.builtin.template:
|
||||
src: lnbits/.env.j2
|
||||
dest: ~/containers/lnbits/.env
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -49,7 +49,7 @@ SPARK_URL=http://localhost:9737/rpc
|
||||
SPARK_TOKEN=myaccesstoken
|
||||
|
||||
# CoreLightningWallet
|
||||
CORELIGHTNING_RPC="/root/.lightning/bitcoin/lightning-rpc"
|
||||
CORELIGHTNING_RPC="/.lightning/bitcoin/lightning-rpc"
|
||||
|
||||
# CoreLightningRestWallet
|
||||
CORELIGHTNING_REST_URL=http://127.0.0.1:8185/
|
||||
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
#buildah bud -f Containerfile -t lnbits:{{lnbits_version}}
|
||||
buildah bud -f Containerfile -t lnbits:{{lnbits_version}}
|
||||
|
||||
23
roles/apps/templates/lnbits/lnbits-node.container.j2
Normal file
23
roles/apps/templates/lnbits/lnbits-node.container.j2
Normal file
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=LNBITS Node
|
||||
After=clightning-node.service
|
||||
|
||||
[Container]
|
||||
# Use the centos image
|
||||
Image={{ registry_url }}/lnbits:{{ lnbits_version }}
|
||||
PodmanArgs=--pod bitcoin-pod
|
||||
|
||||
# Use volume
|
||||
Volume=/home/n0xb0x/vol/clightning/.lightning:/.lightning: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
|
||||
Loading…
x
Reference in New Issue
Block a user