Closed jgmontoya closed 2 weeks ago
The changes in this pull request involve modifications to various configuration and build files for a Docker-based application. Key updates include adjustments to the .gitignore
file to manage ignored directories, enhancements to the Makefile
for Docker operations, and updates to the Docker environment configuration. Additionally, the Dockerfile and Docker Compose configurations have been revised to improve the build process and service management. Documentation has been updated to reflect these changes, providing clearer instructions for users.
File | Change Summary |
---|---|
.gitignore |
Removed entry for /relay/data/* , added entry for docker/config , added comment header for clarity. |
Makefile |
Added targets: docker-build , docker-up , docker-relay-up , docker-down for managing Docker services. |
docker/.env.example |
Added variables: LND_CERT_FILE , LND_MACAROON_FILE , MOSTRO_RELAY_LOCAL_PORT . |
docker/DOCKER.md |
Updated documentation for Docker setup, including prerequisites and configuration details. |
docker/Dockerfile |
Updated Rust version to 1.82, added build dependencies, modified working directory, changed entry point. |
docker/compose.yml |
Added nostr-relay service, updated mostro service with networks section, removed LND volume mapping. |
docker/relay_config.toml |
Uncommented secret_key configuration option. |
docker/settings.docker.toml |
Updated LND file paths and modified Nostr relay list. |
relay/.env.example |
Removed file containing MOSTRO_RELAY_LOCAL_PORT variable. |
relay/docker-compose.yml |
Removed file defining nostr-relay service configuration. |
sequenceDiagram
participant User
participant Docker
participant NostrRelay
participant LND
User->>Docker: Run docker-compose up
Docker->>NostrRelay: Start Nostr relay service
Docker->>LND: Ensure LND service is running
NostrRelay->>User: Relay service is active
🐰 "In the land of code, where rabbits play,
New Docker paths brighten the way.
With builds and services, all in a row,
Our MostroP2P will surely glow!
So hop along, let’s cheer and sing,
For changes made, oh what joy they bring!" 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This also improves the Dockerfile.
There is still some work to be done, but getting started with mostro now should be easier: if you already have a polar network/lnd-node set up:
This will spin up a relay and the mostro instance pointing to that relay, it will copy the LND cert file and macaroon file and allow communicating with the running polar node.