diff --git a/compose/docker-compose.override-lnd.yml b/compose/docker-compose.override-lnd.yml index d5c7474..772fe92 100644 --- a/compose/docker-compose.override-lnd.yml +++ b/compose/docker-compose.override-lnd.yml @@ -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: diff --git a/compose/env-sample/lndtn/compose.env b/compose/env-sample/lndtn/compose.env index 802227b..bad437a 100644 --- a/compose/env-sample/lndtn/compose.env +++ b/compose/env-sample/lndtn/compose.env @@ -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 diff --git a/compose/env-sample/lndtn/torrc b/compose/env-sample/lndtn/torrc index 82bcdb9..d8881ed 100644 --- a/compose/env-sample/lndtn/torrc +++ b/compose/env-sample/lndtn/torrc @@ -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 diff --git a/compose/lndg/Dockerfile b/compose/lndg/Dockerfile new file mode 100644 index 0000000..12dd729 --- /dev/null +++ b/compose/lndg/Dockerfile @@ -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