Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make lntop more accessible in a docker? #37

Open
jonathanalevi opened this issue Aug 17, 2021 · 2 comments
Open

How to make lntop more accessible in a docker? #37

jonathanalevi opened this issue Aug 17, 2021 · 2 comments

Comments

@jonathanalevi
Copy link

Hi
Every time I want to start a new LNDTOP session, I need to first do
export LND_HOME=~/.lnd

And then run it with the longer command, using the full file path.

I wonder if there isn't a way to permanently set the LND_HOME, and also set up a command so I can just type "lntop" in the future.

I was able to do this with bashtop following these instructions (https://bigl.es/tuesday-tooling-on-a-fun-friday-bashtop/), so perhaps it's doable also with lntop - but I don't know, because I didn't try bashtop in a docker.

@edouardparis
Copy link
Owner

The docker generates a config file in the volume, you can modify it and its values will be used later.
https://github.com/edouardparis/lntop/tree/master/docker#docker

lntop data will be mapped to host folder at ./_volumes/lntop-data
note that you can review/tweak ./_volumes/lntop-data/config-template.toml after first run
the ./_volumes/lntop-data/config.toml is the effective (generated) config used by lntop run

@jonathanalevi
Copy link
Author

jonathanalevi commented Aug 31, 2021

OK, and then I just do the ./ command to launch it? There's no way to make a quick command line command like "lntop" just launch it?

In any case, fixing the export thing every time would be super helpful, so thank you. I just can't figure out how to get to that config.toml file....? when you say "on the volume" I guess you mean in the docker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants