-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add dockerfile and sample docker compose #176
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are expected commands to be run? I did like following and it doesn't work.
docker build . --tag lndk
docker compose --file sample-docker-compose.yaml up
Got error:
I added a inline comment relates to this error.
Error response from daemon: Mounts denied:
The path /root/lnd is not shared from the host and is not known to Docker.
restart: unless-stopped | ||
stop_grace_period: 15m30s | ||
volumes: | ||
- /root/lnd:/root/.lnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using root directory of a host file systems(/root/lnd) seems not a good idea for me.
Is this standard way in docker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The standard I've seen is lnd:/root/.lnd
or something similar, can we change it to that @niteshbalusu11?
|
||
lndk: | ||
container_name: lndk | ||
image: lndk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing with build .
seems better?
We don't have any plans to upload lndk images to a repository at the moment, so building them locally seems sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like the idea of replacing image
with build
. That way, if a user hasn't built lndk yet, they can still use the docker compose file.
@@ -0,0 +1,27 @@ | |||
services: | |||
lnd: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we run lnd without any config and bitcoind?
Sorry, I'll fix this PR. I completely forgot about it. |
@niteshbalusu11 No worries, thanks for doing it in the first place! Also, if you could squash the commits into one that would be great. |
Closes #147.