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

Feature: Add a Docker Image to DockerHub with a docker-compose example on how to set it up #1072

Open
ArgiesDario opened this issue Aug 18, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ArgiesDario
Copy link

ArgiesDario commented Aug 18, 2024

Is your feature request related to a problem? Please describe.
For anyone (newbies like me) running Bitcoin Core with Docker, would make our lifes much easier to have a Docker Image already built instead of doing it from source

Describe the solution you'd like
Add a Docker Image to DockerHub with a docker-compose.yml example on how to set it up

Describe alternatives you've considered
I saw this old issue: #323 aiming for the same thing, and having this docker-compose.yml as result: https://github.com/lukechilds/electrs-next/blob/master/docker-compose.yml. This is great but a Docker Image in DockerHub would be perfect

Additional context
Nothing, thanks for giving it a try :)

@ArgiesDario ArgiesDario added the enhancement New feature or request label Aug 18, 2024
@Kixunil
Copy link
Contributor

Kixunil commented Aug 18, 2024

It's not clear to me what you're trying to achieve and how Docker solves it (I think it doesn't). Do you want to just setup bitcoind+electrs? Then a docker image could work. But what if you later want to add something else such as LND? You need a completely different docker-compose.yml And if you're incapable of writing it yourself you'll have to rely one someone to write it for you. Electrs certainly isn't a project that should take care of these things.

I suggest you take a look at packaged bitcoin applications instead since packaging can actually solve this problem (and a bunch of others you probably didn't know exist). You can dynamically add or remove components with just one command without having to edit config files or do other kind of busywork. I maintain my own which could be exactly what you need. The other well-known alternative is nix-bitcoin but sadly nix is quite geeky so probably not for you.

@ArgiesDario
Copy link
Author

ArgiesDario commented Aug 19, 2024

My goal is to set up a mempool bitcoin explorer in my own server with Docker, and I need a Electrum Server to do so. In here https://mempool.space/docs/faq#address-lookup-issues explains that electrs is the one with best option "for its low resource requirements"

I was reading this documentation: https://github.com/mempool/mempool/tree/master/docker#configure-with-bitcoin-core--electrum-server, and I was hoping to get electrs by adding it in my docker-compose, but looks like it is not that simple, so I raised this ticket

I'll take a look to the alternatives you mentioned, thanks!

@Kixunil
Copy link
Contributor

Kixunil commented Aug 19, 2024

OK, just make sure your mempool instance is not public because that'd effectively DoS your electrs.

Sadly mempool.space is not yet packaged in CADR, so you might consider other alternatives. Also I'm not sure if it's even possible to do so - I put a requirement of supporting custom root path.

BTW I've remembered that I've previously written about packaging in more details if it interests you: https://github.com/Kixunil/programming_writings/blob/master/packaging_is_not_dead.md

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

No branches or pull requests

2 participants