bitb0x/roles/apps/templates/lnbits/lnbits-node.container.j2

25 lines
649 B
Django/Jinja

[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
Volume=/home/n0xb0x/vol/lnbits/:/app/data: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