From 547d78ee97c614c74d2cdd8cc813ad2998f70dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Calder=C3=B3n?= Date: Tue, 19 Nov 2024 13:12:10 -0300 Subject: [PATCH] Improve Readme file Fix Makefile --- Makefile | 1 + docker/{DOCKER.md => README.md} | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) rename docker/{DOCKER.md => README.md} (82%) diff --git a/Makefile b/Makefile index 1d5d569..7e52cc9 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +SHELL := $(shell which bash) docker-build: @set -o pipefail; \ cd docker && \ diff --git a/docker/DOCKER.md b/docker/README.md similarity index 82% rename from docker/DOCKER.md rename to docker/README.md index 0354d49..b9ce84b 100644 --- a/docker/DOCKER.md +++ b/docker/README.md @@ -27,10 +27,15 @@ To build and run the Docker container using Docker Compose, follow these steps: git clone https://github.com/MostroP2P/mostro.git ``` -2. Ensure you have the `settings.toml` configuration file and the `mostro.db` SQLite database in a `config` directory (acording to the `volumes` section). If you don't have those files from a previous installation, then the first time they will be created as follows: +2. Ensure you have the `settings.toml` configuration file and the `mostro.db` SQLite database in a `config` directory (acording to the `volumes` section in compose.yml file). If you don't have those files from a previous installation, then the first time they will be created as follows: - - `docker/config/settings.toml` from the `docker/settings.docker.toml` template - - `docker/config/mostro.db` from the `docker/empty.mostro.db` database + ```sh + mkdir docker/config + cp docker/settings.docker.toml docker/config/settings.toml + cp docker/empty.mostro.db docker/config/mostro.db + ``` + + _Don't forget to edit `lnd_grpc_host`, `nsec_privkey` and `relays` fields in the `config/settings.toml` file._ 3. Set the `LND_CERT_FILE` and `LND_MACAROON_FILE` to the paths of the LND TLS certificate and macaroon files on the `docker/.env` file. These files will be copied to the `docker/config/lnd` directory. For example: