Merge pull request #19 from KoalaSat/add-lndg

Add LNDg
This commit is contained in:
KoalaSat
2024-10-15 08:24:05 +00:00
committed by GitHub
4 changed files with 31 additions and 2 deletions

View File

@ -45,6 +45,22 @@ services:
volumes:
- ${LND_DATA:?}:/lnd/:ro
- ${LIT_DATA:?}:/root/
lndg:
build: ./lndg
restart: always
container_name: lndg${SUFFIX}
volumes:
- ${LNDG_CONF}:/root/.lnd:ro
- ${LNDG_DATA}:/lndg/data:rw
depends_on:
- tor
- lnd
command:
- sh
- -c
- python initialize.py -net 'mainnet' -server '127.0.0.1:10009' -d && supervisord && python manage.py runserver 0.0.0.0:8889
network_mode: service:tor
# Patch common services
# tor:

View File

@ -62,8 +62,8 @@ THUB_ACCOUNTS='./env/lndtn/thunderhub-accounts.yml'
# THUB_ACCOUNTS_CONFIG_PATH must match thub...env
THUB_ACCOUNTS_CONFIG_PATH='/config/accounts.yml'
LNDG_CONF='/custom_path/testnet/lndg/config'
LNDG_DATA='/custom_path/testnet/lndg/data'
LIT_LOCAL_PORT=4001
LIT_PASSWORD=999999999

View File

@ -28,3 +28,7 @@ HiddenServicePort 80 127.0.0.1:3000
HiddenServiceDir /var/lib/tor/robotest-lit/
HiddenServiceVersion 3
HiddenServicePort 8443 127.0.0.1:8443
HiddenServiceDir /var/lib/tor/robotest-lndg/
HiddenServiceVersion 3
HiddenServicePort 80 127.0.0.1:8889

9
compose/lndg/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM ubuntu:jammy
ENV TZ=Europe/London
ENV PYTHONUNBUFFERED 1
RUN apk add git g++ linux-headers && git clone https://github.com/cryptosharks131/lndg /app
WORKDIR /app
RUN git checkout "master"
RUN pip install -r requirements.txt
RUN pip install supervisor whitenoise