tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

Move `unlockerd` inside `tdexd` and add `UNLOCK_PASSWORD_FILE` config ENV VAR option to make unlocker feature inside `tdexd` #557

Closed tiero closed 2 years ago

tiero commented 2 years ago

TODO:

tiero commented 2 years ago

To prevent this, should maybe the tdexd "pulls" the password IN instead of being a separated service?

LND does the same apparently, we can have an ENV VAR to specify where the password is.

https://github.com/lightningnetwork/lnd/blob/master/docs/wallet.md#auto-unlocking-a-wallet

@sekulicd

tiero commented 2 years ago

First thing is to try to replicate the issue with docker compose

  1. Create a compose like the following
    
    version: "3.7"

services:

TDEX daemon connected to Blockstream.info explorer

tdexd: container_name: "tdexd" image: ghcr.io/tdex-network/tdexd:latest restart: unless-stopped environment:

  1. Run it with docker-compose up

  2. initialize with seed and password and put it in the pwd.txt file in local path

  3. check status with docker exec -it tdexd tdex status

  4. Restart the Docker engine (or Docker Desktop if on Mac)

Is it unlocker working?

tiero commented 2 years ago

@sekulicd We need to coordinate all documentation and tdex-box reference with new ENV VAR. Refer to first comment in the issue for checklist for completion