Skip to content

Conversation

@moisesPompilio
Copy link
Contributor

Adds Docker support for building and testing LDK Server. Includes a multi-stage Dockerfile for optimized builds and a docker-compose.yml for a full testing environment with Bitcoin Core, CLN, and LND.

  1. Dockerfile: Multi-stage build with builder stage for Rust compilation (supports BUILD_FEATURES) and final stage for runtime. Exposes ports 3000 and 3001 for REST and Lightning connectivity.
  2. docker-compose.yml: Sets up a complete testing environment with Bitcoin Core in regtest mode, CLN (Core Lightning), and LND for Lightning Network interactions.
    • Default profile: Runs Bitcoin Core, CLN, LND (docker compose up).
    • ldk-server profile: Runs Bitcoin Core, CLN, LND, LDK Server (docker compose --profile ldk-server up).
    • rabbitmq profile: Runs Bitcoin Core, CLN, LND, RabbitMQ (docker compose --profile rabbitmq up).

this pr depends on #69

Implements multi-stage build to produce a small final image by discarding build dependencies. Supports optional BUILD_FEATURES for additional features, with cached compilation in builder stage.
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Oct 17, 2025

👋 Thanks for assigning @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

introduces docker-compose.yml with Bitcoin Core, CLN, and LND for Lightning testing. The default profile runs these services; the 'ldk-server' profile adds the LDK server; the 'rabbitmq' profile includes RabbitMQ for events.
@ldk-reviews-bot
Copy link

🔔 1st Reminder

Hey @wpaulino! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@tnull tnull requested review from tnull and removed request for wpaulino October 21, 2025 15:33
@ldk-reviews-bot
Copy link

🔔 1st Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

@ldk-reviews-bot
Copy link

🔔 2nd Reminder

Hey @tnull! This PR has been waiting for your review.
Please take a look when you have a chance. If you're unable to review, please let us know so we can find another reviewer.

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.

2 participants