File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Display help message if --help flag is provided
4
+ if [ " $1 " = " --help" ] || [ " $1 " = " -h" ]; then
5
+ echo " Usage: $0 [network] [docker-compose options]"
6
+ echo " "
7
+ echo " Options:"
8
+ echo " network The Bitcoin network to use (signet or testnet4). Default: signet"
9
+ echo " docker-compose options Any additional options to pass to docker-compose"
10
+ echo " "
11
+ echo " Examples:"
12
+ echo " $0 Run on signet network"
13
+ echo " $0 testnet4 Run on testnet4 network"
14
+ echo " $0 signet bitcoind-data Run bitcoind on signet network volume"
15
+ exit 0
16
+ fi
17
+
18
+
3
19
# Default to signet if no network is specified
4
20
NETWORK=${1:- signet}
5
21
@@ -23,8 +39,11 @@ export BTC_RPC_PORT=$BTC_RPC_PORT
23
39
# Remove the first argument (network) to pass remaining args to docker-compose
24
40
shift
25
41
42
+ # Start network interfaces, so we can services one by one and let them connect to each other
43
+ docker compose up --no-start
44
+
26
45
# Stop all earlier instances to avoid conflicting services
27
- docker compose down
46
+ # docker compose down "$@"
28
47
29
48
# Run docker-compose with the specified configuration
30
49
docker compose up " $@ "
You can’t perform that action at this time.
0 commit comments