-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
125 lines (120 loc) · 3 KB
/
docker-compose.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: '3.7'
services:
bitcoin:
image: ruimarinho/bitcoin-core:latest
ports:
- 18443:18443
- 30001:30001
command:
- "-daemon=0"
- "-debug=zmq"
- "-debug=rpc"
- "-debug=http"
- "-regtest=1"
- "-rpcbind=0.0.0.0:18443"
- "-rpcuser=devnet"
- "-rpcpassword=devnet"
- "-rpcallowip=0.0.0.0/0"
- "-server=1"
- "-txindex=1"
- "-prune=0"
- "-fallbackfee=0.0001"
- "-zmqpubhashtx=tcp://0.0.0.0:30001"
- "-zmqpubhashblock=tcp://0.0.0.0:30001"
- "-zmqpubrawblock=tcp://0.0.0.0:30001"
- "-zmqpubrawtx=tcp://0.0.0.0:30001"
volumes:
- "./chaindata/bitcoin:/home/bitcoin/.bitcoin"
networks:
testing_net:
ipv4_address: 172.16.238.11
restart: always
profiles: [lite,full]
electrs:
image: blockstream/esplora:electrs-latest
ports:
- 50000:50000
- 50001:50001
user: root
command:
- "/app/electrs_bitcoin/bin/electrs"
- "-vvvv"
- "--timestamp"
- "--daemon-dir=/app/.bitcoin"
- "--db-dir=/app/db"
- "--network=regtest"
- "--http-addr=0.0.0.0:50000"
- "--electrum-rpc-addr=0.0.0.0:50001"
- "--daemon-rpc-addr=172.16.238.11:18443"
- "--cookie=devnet:devnet"
- "--electrum-txs-limit=1000000"
- "--cors=*"
- "--utxos-limit=1000000"
volumes:
- "./chaindata/explorer:/app/db"
- "./chaindata/bitcoin:/app/.bitcoin"
networks:
testing_net:
ipv4_address: 172.16.238.12
restart: always
profiles: [lite,full]
# esplora:
# image: blockstream/esplora:latest
# ports:
# - 8094:80
# environment:
# - API_URL=http://172.16.238.12:50000
# command:
# - "/srv/explorer/run.sh"
# - "bitcoin-regtest"
# - "explorer"
# volumes:
# - "./chaindata/bitcoin:/data"
# networks:
# testing_net:
# ipv4_address: 172.16.238.13
# restart: always
indexer:
build:
context: .
dockerfile: Dockerfile
environment:
- RUST_LOG=info,r1cs=off
- RUST_BACKTRACE=1
ports:
- 3000:3000
command:
- "indexer"
- "--addr=0.0.0.0:3000"
- "--bitcoin-rpc=http://172.16.238.11:18443"
- "--bitcoin-rpcuser=devnet"
- "--bitcoin-rpcpassword=devnet"
- "--db-path=/l2o/db"
networks:
testing_net:
ipv4_address: 172.16.238.14
volumes:
- "./db:/l2o/db"
restart: always
profiles: [full]
# ordhook:
# image: hirosystems/ordhook:latest
# command:
# - "service"
# - "start"
# - "--post-to=http://172.16.238.14:3000/api/events"
# - "--config-path=./Ordhook.toml"
# volumes:
# - "./ordhook-data:/workspace/ordhook-data"
# - "./Ordhook.toml:/workspace/Ordhook.toml"
# networks:
# testing_net:
# ipv4_address: 172.16.238.15
# restart: always
# profiles: [full]
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.16.238.0/24