* Added pid file declaration to start command for clightning
* Added poetry install for lnbits
This commit is contained in:
parent
aff55b0335
commit
f25f1f8297
@ -4,7 +4,7 @@ Description=Core Lightning Server
|
|||||||
[Container]
|
[Container]
|
||||||
Image={{ registry_url }}/clightning:{{ clightning_version }}
|
Image={{ registry_url }}/clightning:{{ clightning_version }}
|
||||||
PodmanArgs=--pod bitcoin-pod
|
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
|
# Use volume
|
||||||
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z
|
Volume=/home/{{ansible_user}}/vol/bitcoin/.bitcoin:/data/.bitcoin:ro,Z
|
||||||
|
|||||||
@ -35,4 +35,4 @@ ENV LNBITS_HOST="0.0.0.0"
|
|||||||
|
|
||||||
EXPOSE $LNBITS_PORT
|
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"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user