forked from SaturnBTC/Titan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
71 lines (68 loc) · 1.91 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
71 lines (68 loc) · 1.91 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
70
71
services:
titan:
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
bitcoind:
condition: service_healthy
ports:
- 0.0.0.0:${TITAN_TCP_PORT:-8080}:${TITAN_TCP_PORT:-8080}
- 0.0.0.0:${TITAN_HTTP_PORT:-3030}:${TITAN_HTTP_PORT:-3030}
networks:
titan-network:
ipv4_address: 172.28.0.2
environment:
- COMMIT_INTERVAL=${COMMIT_INTERVAL:-5}
- BITCOIN_RPC_URL=http://bitcoind:${BITCOIN_RPC_PORT:-18443}
- BITCOIN_RPC_USERNAME=${BITCOIN_RPC_USERNAME:-bitcoin}
- BITCOIN_RPC_PASSWORD=${BITCOIN_RPC_PASSWORD:-bitcoinpass}
- CHAIN=${BITCOIN_NETWORK:-regtest}
- HTTP_LISTEN=0.0.0.0:${TITAN_HTTP_PORT:-3030}
- TCP_ADDRESS=0.0.0.0:${TITAN_TCP_PORT:-8080}
volumes:
- "titan-data:/home/titan/data"
bitcoind:
image: bitcoin/bitcoin
ports:
- 0.0.0.0:${BITCOIN_RPC_PORT:-18443}:${BITCOIN_RPC_PORT:-18443}
volumes:
- "btcd-data:/var/lib/bitcoin-core"
networks:
titan-network:
ipv4_address: 172.28.0.3
command: |
-${BITCOIN_NETWORK:-regtest}
-rpcallowip=0.0.0.0/0
-datadir=/var/lib/bitcoin-core
-rpcbind=bitcoind
-rpcuser=${BITCOIN_RPC_USERNAME:-bitcoin}
-rpcpassword=${BITCOIN_RPC_PASSWORD:-bitcoinpass}
-fallbackfee=0.00000001
-txindex
healthcheck:
test:
[
"CMD",
"bitcoin-cli",
"-${BITCOIN_NETWORK:-regtest}",
"-rpcconnect=bitcoind",
"-rpcport=${BITCOIN_RPC_PORT:-18443}",
"-rpcuser=${BITCOIN_RPC_USERNAME:-bitcoin}",
"-rpcpassword=${BITCOIN_RPC_PASSWORD:-bitcoinpass}",
"getblockchaininfo",
]
interval: 10s
timeout: 5s
retries: 10
networks:
titan-network:
ipam:
driver: default
config:
- subnet: 172.28.0.0/24
gateway: 172.28.0.1
volumes:
titan-data:
btcd-data: