docs: add host gateway instructions

This commit is contained in:
2025-06-05 18:07:11 +02:00
parent ffe28200a6
commit f8a325375c
3 changed files with 12 additions and 0 deletions

View File

@@ -180,6 +180,15 @@ docker compose up --build
The application listens on port `8081`. Adjust the volume mounts in
`docker-compose.yml` so that the container can access your lnd data and
`lnd-manageJ.conf` file.
If lnd is running on the host machine, add the following to the
`lnd-managej` service in `docker-compose.yml`:
```yaml
extra_hosts:
- "host.docker.internal:host-gateway"
```
and set `host=host.docker.internal` in the `[lnd]` section of your
`lnd-manageJ.conf` file so that lnd-manageJ can reach lnd on the host.
## Disclaimer
This project is not related to bitromortac's Python based [lndmanage](https://github.com/bitromortac/lndmanage).

View File

@@ -23,5 +23,7 @@ services:
volumes:
- ~/.lnd:/root/.lnd:ro
- ~/.config/lnd-manageJ.conf:/root/.config/lnd-manageJ.conf:ro
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
postgres-data:

View File

@@ -4,6 +4,7 @@
# If in doubt, remove any configuration option you do not fully understand!
[lnd]
# use host.docker.internal if lnd-manageJ runs in Docker and lnd runs on the host
host=localhost
port=10009
macaroon_file=/home/user/.lnd/data/chain/bitcoin/mainnet/admin.macaroon