Skip to content

Commit 4b72c9b

Browse files
authored
Merge pull request #22 from KoalaSat/add-lndg
Fix supervisord
2 parents 008eba4 + bc52e96 commit 4b72c9b

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

compose/docker-compose.override-lnd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ services:
5151
restart: always
5252
container_name: lndg${SUFFIX}
5353
volumes:
54+
- ${LND_CONFIG}:/root/supervisord.conf:ro
5455
- ${LND_DATA}:/root/.lnd:ro
5556
- ${LNDG_DATA}:/lndg/data:rw
5657
depends_on:
@@ -59,7 +60,7 @@ services:
5960
command:
6061
- sh
6162
- -c
62-
- python initialize.py -net ${NETWORK} -dir /root/.lnd -rpc 127.0.0.1:${GUEST_LND_RPC_PORT:?} -u ${LNDG_USER:?} -pw ${LNDG_PASSWORD:?} -d && supervisord && python manage.py runserver 0.0.0.0:8889
63+
- python initialize.py -net ${NETWORK} -dir /root/.lnd -rpc 127.0.0.1:${GUEST_LND_RPC_PORT:?} -u ${LNDG_USER:?} -pw ${LNDG_PASSWORD:?} -d && supervisord -c /root/supervisord.conf && python manage.py runserver 0.0.0.0:8889
6364
network_mode: service:tor
6465

6566
# Patch common services

compose/env-sample/lndtn/compose.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ THUB_ACCOUNTS='./env/lndtn/thunderhub-accounts.yml'
6262
# THUB_ACCOUNTS_CONFIG_PATH must match thub...env
6363
THUB_ACCOUNTS_CONFIG_PATH='/config/accounts.yml'
6464

65+
LNDG_CONFIG='/custom_path/testnet/lndg/config'
6566
LNDG_DATA='/custom_path/testnet/lndg/data'
6667
LNDG_USER='lndg-admin'
6768
LNDG_PASSWORD=999999999
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[supervisord]
2+
user=root
3+
childlogdir = /var/log
4+
logfile = /var/log/supervisord.log
5+
logfile_maxbytes = 50MB
6+
logfile_backups = 30
7+
loglevel = info
8+
pidfile = /var/supervisord.pid
9+
umask = 022
10+
nodaemon = false
11+
nocleanup = false
12+
13+
[rpcinterface:supervisor]
14+
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
15+
16+
[program:controller]
17+
command = sh -c "python controller.py && sleep 15"
18+
process_name = lndg-controller
19+
directory = /app
20+
autorestart = true
21+
redirect_stderr = true
22+
stdout_logfile = /var/log/lndg-controller.log
23+
stdout_logfile_maxbytes = 150MB
24+
stdout_logfile_backups = 15

compose/env-sample/lndtn/torrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ HiddenServiceVersion 3
1717
HiddenServicePort 80 127.0.0.1:80
1818

1919
# Robosats Admin Testnet Onion Service
20-
HiddenServiceDir /var/lib/tor/satstralia-admin/
20+
HiddenServiceDir /var/lib/tor/robotest-admin/
2121
HiddenServiceVersion 3
2222
HiddenServicePort 80 127.0.0.1:80
2323

0 commit comments

Comments
 (0)