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

Add dockerfile and sample docker compose #176

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

niteshbalusu11
Copy link

@niteshbalusu11 niteshbalusu11 commented Sep 25, 2024

Closes #147.

Copy link
Contributor

@kannapoix kannapoix left a 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
Copy link
Contributor

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?

Copy link
Collaborator

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
Copy link
Contributor

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.

Copy link
Collaborator

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:
Copy link
Contributor

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?

@niteshbalusu11
Copy link
Author

Sorry, I'll fix this PR. I completely forgot about it.

@orbitalturtle
Copy link
Collaborator

@niteshbalusu11 No worries, thanks for doing it in the first place! Also, if you could squash the commits into one that would be great.

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

Successfully merging this pull request may close these issues.

Docker Image
3 participants