mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-26 11:56:16 +02:00
Co-authored-by: jackstar12 <62219658+jackstar12@users.noreply.github.com> Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> Co-authored-by: dni ⚡ <office@dnilabs.com>
31 lines
880 B
Docker
31 lines
880 B
Docker
FROM boltz/boltz-client:latest AS boltz
|
|
|
|
FROM lnbits/lnbits:latest
|
|
|
|
COPY --from=boltz /bin/boltzd /bin/boltzcli /usr/local/bin/
|
|
RUN ls -l /usr/local/bin/boltzd
|
|
RUN apt-get update && apt-get -y upgrade && \
|
|
apt-get install -y netcat-openbsd
|
|
|
|
# Reinstall dependencies just in case (needed for CMD usage)
|
|
ARG POETRY_INSTALL_ARGS="--only main"
|
|
RUN poetry install ${POETRY_INSTALL_ARGS}
|
|
|
|
# LNbits + boltzd configuration
|
|
ENV LNBITS_PORT="5000"
|
|
ENV LNBITS_HOST="0.0.0.0"
|
|
ENV LNBITS_BACKEND_WALLET_CLASS="BoltzWallet"
|
|
ENV FUNDING_SOURCE_MAX_RETRIES=10
|
|
ENV BOLTZ_CLIENT_ENDPOINT="127.0.0.1:9002"
|
|
ENV BOLTZ_CLIENT_MACAROON="/root/.boltz/macaroons/admin.macaroon"
|
|
ENV BOLTZ_CLIENT_CERT="/root/.boltz/tls.cert"
|
|
ENV BOLTZ_CLIENT_WALLET="lnbits"
|
|
|
|
EXPOSE 5000
|
|
|
|
# Entrypoint to start boltzd and LNbits
|
|
COPY dockerboltz.sh /dockerboltz.sh
|
|
RUN chmod +x /dockerboltz.sh
|
|
|
|
CMD ["/dockerboltz.sh"]
|