Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial sensei configuration #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions cmd/nigiri/resources/docker-compose.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ services:
environment:
API_URL: http://localhost:3000
ports:
- 5000:5000
- 4400:5000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert to default ports (you can edit this on your data directory and/or soon via ENV variable #145 )

restart: unless-stopped

esplora-liquid:
Expand All @@ -119,7 +119,7 @@ services:
environment:
API_URL: http://localhost:3001
ports:
- 5001:5000
- 4401:5000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still, this is used in many tutorials already. Best to give a different one to new services introduced if possible

restart: unless-stopped

# Chopsticks
Expand Down Expand Up @@ -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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will conflict to Liquid port

- "9635:9735" # p2p


lightningd:
container_name: cln
image: elementsproject/lightningd:latest
Expand Down
2 changes: 2 additions & 0 deletions cmd/nigiri/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Sensei capable to work without the frontend ie. only API/RPC? If Yes, may be worth running it also in CI mode (ie. under the isCI branch) so the Nigiri Github Action can offer CI testing using sensei

https://github.com/vulpemventures/nigiri-github-action

}

if isCI {
Expand Down