From 6db83c36e8195ec1c918231c90fbc52b32dfc83c Mon Sep 17 00:00:00 2001 From: Justin Litchfield Date: Fri, 22 Apr 2022 15:47:53 -0500 Subject: [PATCH 1/2] Initial sensei configuration (requires local Sensei Docker container built) --- cmd/nigiri/resources/docker-compose.yml | 25 +++++++++++++++++++++++-- cmd/nigiri/start.go | 2 ++ 2 files changed, 25 insertions(+), 2 deletions(-) mode change 100644 => 100755 cmd/nigiri/resources/docker-compose.yml diff --git a/cmd/nigiri/resources/docker-compose.yml b/cmd/nigiri/resources/docker-compose.yml old mode 100644 new mode 100755 index 9da3027..3c8b93d --- a/cmd/nigiri/resources/docker-compose.yml +++ b/cmd/nigiri/resources/docker-compose.yml @@ -108,7 +108,7 @@ services: environment: API_URL: http://localhost:3000 ports: - - 5000:5000 + - 4400:5000 restart: unless-stopped esplora-liquid: @@ -119,7 +119,7 @@ services: environment: API_URL: http://localhost:3001 ports: - - 5001:5000 + - 4401:5000 restart: unless-stopped # Chopsticks @@ -181,6 +181,27 @@ services: - "9735:9735" # p2p - "10009:10009" # grpc + sensei: + container_name: sensei + image: sensei + depends_on: + - bitcoin + volumes: + - ./volumes/sensei:/data/.sensei + environment: + DATA_DIR: /data + NETWORK: regtest + BITCOIND_RPC_HOST: bitcoin + BITCOIND_RPC_PORT: 18443 + BITCOIND_RPC_USERNAME: admin1 + BITCOIND_RPC_PASSWORD: 123 + ports: + - "5401:5401" + - "3100:3000" + - "3001:3001" + - "9635:9735" # p2p + + lightningd: container_name: cln image: elementsproject/lightningd:latest diff --git a/cmd/nigiri/start.go b/cmd/nigiri/start.go index 1eff8b9..e679be8 100644 --- a/cmd/nigiri/start.go +++ b/cmd/nigiri/start.go @@ -53,6 +53,8 @@ func startAction(ctx *cli.Context) error { servicesToRun = append(servicesToRun, "lnd") // Core Lightning Network servicesToRun = append(servicesToRun, "lightningd") + + servicesToRun = append(servicesToRun, "sensei") } if isCI { From db9bb0d197af6eb4a2de956e541142a064f7fb90 Mon Sep 17 00:00:00 2001 From: Justin Litchfield Date: Fri, 6 May 2022 08:39:07 -0500 Subject: [PATCH 2/2] Port conflicts are resolved, dockerhub instance is used --- cmd/nigiri/resources/docker-compose.yml | 8 ++++---- cmd/nigiri/start.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/nigiri/resources/docker-compose.yml b/cmd/nigiri/resources/docker-compose.yml index 3c8b93d..bcb99ae 100755 --- a/cmd/nigiri/resources/docker-compose.yml +++ b/cmd/nigiri/resources/docker-compose.yml @@ -108,7 +108,7 @@ services: environment: API_URL: http://localhost:3000 ports: - - 4400:5000 + - 5000:5000 restart: unless-stopped esplora-liquid: @@ -183,7 +183,7 @@ services: sensei: container_name: sensei - image: sensei + image: litch/sensei:latest depends_on: - bitcoin volumes: @@ -197,9 +197,9 @@ services: BITCOIND_RPC_PASSWORD: 123 ports: - "5401:5401" - - "3100:3000" - - "3001:3001" - "9635:9735" # p2p + - "10000:10000" + - "10001:10001" lightningd: diff --git a/cmd/nigiri/start.go b/cmd/nigiri/start.go index e679be8..3e86cf7 100644 --- a/cmd/nigiri/start.go +++ b/cmd/nigiri/start.go @@ -53,7 +53,7 @@ func startAction(ctx *cli.Context) error { servicesToRun = append(servicesToRun, "lnd") // Core Lightning Network servicesToRun = append(servicesToRun, "lightningd") - + // Sensei servicesToRun = append(servicesToRun, "sensei") }