-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (66 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (66 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
mainchain:
# 38333 = P2P, 38332 = RPC
ports: ["38333:38333", "38332:38332"]
healthcheck:
test:
[
"CMD",
"curl",
"--fail",
"-X",
"POST",
"-u",
"user:password",
"http://localhost:38332",
]
# https://github.com/barebitcoin/bitcoin-patched
image: barebitcoin/bitcoin-patched:2024-09-29-signet
volumes: [mainchain-data:/root/drivechain]
restart: unless-stopped
command:
- drivechaind
- -rpcuser=user
- -rpcpassword=password
- -server
- -signet
- -signetblocktime=600
- -signetchallenge=00148835832e28c816b7acd8fdb19772ab2199603a56
- -listen
- -rpcbind=0.0.0.0
- -rpcallowip=0.0.0.0/0
- -debug=rpc
- -debug=net
- -txindex
- -fallbackfee=0.00021
- -zmqpubsequence=tcp://0.0.0.0:29000
- -addnode=drivechain.live:8383
zside:
image: barebitcoin/zside:latest
depends_on:
mainchain:
condition: service_healthy
healthcheck:
# This doesn't verify that' we're able to query the JSON-RPC interface,
# but merely that the container is listening on the RPC port.
test: ["CMD", "curl", "http://localhost:20000"]
interval: 1s
start_interval: 20s
volumes:
- $PWD/zside.conf:/root/.zside/zside.conf
# for some reason zside requires the conf file, unable to pass as CLI opts
environment:
RUST_LOG: info # logs from the Rust Drivechain lib is controlled here
ports:
- 20000:20000
command:
- -regtest
- -printtoconsole
- -mainhost=mainchain
- -rpcuser=user
- -rpcpassword=password
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0:20000
- -rpcport=20000
volumes:
mainchain-data: