0

I try to run this docker-compose file for lnd and bitcoin testnet:

version: '3.7'
services:
  lnd:
    container_name: lnd
    image: lightninglabs/lnd:v0.15.4-beta
    volumes:
      - lncm-lnd:/data/.lnd
    environment:
      HOME: /data
    ports:
      - "9735:9735"
      - "10009:10009"
    user: 1000:1000
  bitcoin:
    container_name: bitcoin
    image: lncm/bitcoind:v23.0
    volumes:
      - lncm-bitcoin:/data/.bitcoin
    ports:
      - "18332:18332"
      - "28332:28332"
      - "28333:28333"
      - "28334:28334"

volumes:
    lncm-bitcoin:
    lncm-lnd:

I have this error:

failed to load config: ValidateConfig: Failed to create lnd directory '/data/.lnd/data': mkdir /data/.lnd/data: permission denied

what's wrong ?

bitcoin.conf file:

testnet=1
server=1

[test]
txindex=1
minrelaytxfee=0
rpcbind=0.0.0.0
rpcport=18332
rpcallowip=127.0.0.1
rpcuser=btcclient
rpcpassword=btcpsw
zmqpubrawblock=tcp://0.0.0.0:28332
zmqpubrawtx=tcp://0.0.0.0:28333
zmqpubhashblock=tcp://0.0.0.0:28334

and lnd.conf file:

[bitcoin]
bitcoin.active=true
bitcoin.testnet=true
bitcoin.node=bitcoind

[Bitcoind]
bitcoind.rpchost=bitcoin
bitcoind.rpcuser=btcclient
bitcoind.rpcpass=btcpsw
bitcoind.zmqpubrawblock=0.0.0.0:28333
bitcoind.zmqpubrawtx=0.0.0.0:28334

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.