continued working on lnbits
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user