This commit is contained in:
benthecarman
2023-04-09 00:05:44 -05:00
parent 3bf5faa4b3
commit c91a0d7a12
4 changed files with 37 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -5,3 +5,6 @@
path = electrs path = electrs
url = https://github.com/MutinyWallet/electrs.git url = https://github.com/MutinyWallet/electrs.git
branch = new-index branch = new-index
[submodule "rapid-gossip-sync-server"]
path = rapid-gossip-sync-server
url = https://github.com/lightningdevkit/rapid-gossip-sync-server.git

View File

@@ -55,6 +55,38 @@ services:
ports: ports:
- "9735:9735" - "9735:9735"
- "10009:10009" - "10009:10009"
rgs_server:
build:
context: ./rapid-gossip-sync-server
dockerfile: ./docker/Dockerfile.rgs
volumes:
- ~/volumes/rgs:/usr/src/app:cached
links:
- postgres
- bitcoind
depends_on:
- postgres
environment:
RAPID_GOSSIP_SYNC_SERVER_DB_HOST: postgres
RAPID_GOSSIP_SYNC_SERVER_DB_USER: lightning-rgs
RAPID_GOSSIP_SYNC_SERVER_DB_PASSWORD: docker
RAPID_GOSSIP_SYNC_SERVER_DB_NAME: ln_graph_sync
RAPID_GOSSIP_SYNC_SERVER_NETWORK: signet
BITCOIN_REST_DOMAIN: bitcoind
BITCOIN_REST_PORT: 38332
LN_PEERS: 02ccae6cf587b54d934f512ef1941e8a17e243f4c81628b0bc2df307295de28870@lnd:9735 # lnd's node id
command: 'cargo run --release'
postgres:
image: 'postgres:12-alpine'
ports:
- 5432:5432
volumes:
- ~/volumes/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: lightning-rgs
POSTGRES_PASSWORD: docker
POSTGRES_DB: ln_graph_sync
electrs: electrs:
container_name: "electrs" container_name: "electrs"
build: build:

View File

@@ -27,6 +27,7 @@ if [[ "$EXTERNAL_IP" != "" ]]; then
fi fi
echo "[signet] echo "[signet]
rest=1
daemon=1 daemon=1
listen=1 listen=1
server=1 server=1