* Added pid file declaration to start command for clightning

* Added poetry install for lnbits
This commit is contained in:
b0xxer 2025-04-11 07:38:34 -05:00
parent aff55b0335
commit f25f1f8297
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ Description=Core Lightning Server
[Container]
Image={{ registry_url }}/clightning:{{ clightning_version }}
PodmanArgs=--pod bitcoin-pod
Exec=--bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3001 --clnrest-host=0.0.0.0 --clnrest-certs=/root/.lightning
Exec=--pid-file=/root/.lightning/lightning.pid --bitcoin-rpcuser={{bitcoin_rpcuser}} --bitcoin-rpcpassword={{bitcoin_rpcpassword}} --clnrest-port=3001 --clnrest-host=0.0.0.0 --clnrest-certs=/root/.lightning
# Use volume
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z

View File

@ -35,4 +35,4 @@ ENV LNBITS_HOST="0.0.0.0"
EXPOSE $LNBITS_PORT
CMD ["sh", "-c", "poetry run lnbits --port $LNBITS_PORT --host $LNBITS_HOST"]
CMD ["sh", "-c", "poetry install && poetry run lnbits --port $LNBITS_PORT --host $LNBITS_HOST"]