-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
145 lines (133 loc) · 3.58 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: "3.9"
services:
runner:
build: runner
volumes:
- "./runner:/usr/src/app"
environment:
RED_NODE_URL: "http://red-node:8332"
BLUE_NODE_URL: "http://blue-node:8332"
JACK_NODE_URL: "http://jack-node:8332"
JILL_NODE_URL: "http://jill-node:8332"
networks:
- default
command: bundle exec ruby load_the_jump_program.rb
red-noc:
build: red-noc
volumes:
- "./red-noc:/usr/src/app"
environment:
MIN_BLOCK_HEIGHT: 51 # this should be enough depth for blue-miner to confirm txn that funds jack and jill
RED_NODE_URL: "http://red-node:8332"
networks:
- default
command: bundle exec ruby find_them_and_destroy_them.rb
red-node:
build: evil-bitcoin
volumes:
- "./red-node-data:/root/.bitcoin"
command: bitcoind
-txindex
-printtoconsole
-loadblock=/root/.bitcoin/blocks/blk00000.dat
-wallet=redwallet
-addnode=blue-node:8333
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcauth=satoshi:c0394c5b5db0bd5d1ee2ce7590125899$$7d2e0b6f839d5af1f4cd04a9e61fb6b0bb57cdc6dfe13d92b88ae008f1658e4a
red-miner:
build: cpuminer
deploy:
resources:
limits:
cpus: '0.50'
command:
--url=http://red-node:8332
-a sha256d
--coinbase-addr=REPLACE_WITH_RED_COINBASE_ADDR
--no-getwork
--user=satoshi
--pass=waswrong
--coinbase-sig=red-team
blue-node:
build: bitcoin
volumes:
- "./blue-node-data:/root/.bitcoin"
command: bitcoind
-txindex
-printtoconsole
-loadblock=/root/.bitcoin/blocks/blk00000.dat
-wallet=bluewallet
-addnode=red-node:8333
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcauth=satoshi:c0394c5b5db0bd5d1ee2ce7590125899$$7d2e0b6f839d5af1f4cd04a9e61fb6b0bb57cdc6dfe13d92b88ae008f1658e4a
blue-miner:
build: cpuminer
deploy:
resources:
limits:
cpus: '0.25'
command:
--url=http://blue-node:8332
-a sha256d
--coinbase-addr=REPLACE_WITH_BLUE_COINBASE_ADDR
--no-getwork
--user=satoshi
--pass=waswrong
--coinbase-sig=blue-team
jack-node:
build: bitcoin
volumes:
- "./jack-node-data:/root/.bitcoin"
command: bitcoind
-txindex
-printtoconsole
-loadblock=/root/.bitcoin/blocks/blk00000.dat
-wallet=bluewallet
-addnode=blue-node:8333
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcauth=satoshi:c0394c5b5db0bd5d1ee2ce7590125899$$7d2e0b6f839d5af1f4cd04a9e61fb6b0bb57cdc6dfe13d92b88ae008f1658e4a
jill-node:
build: bitcoin
volumes:
- "./jill-node-data:/root/.bitcoin"
command: bitcoind
-txindex
-printtoconsole
-loadblock=/root/.bitcoin/blocks/blk00000.dat
-wallet=bluewallet
-addnode=blue-node:8333
-rpcallowip=0.0.0.0/0
-rpcbind=0.0.0.0
-rpcauth=satoshi:c0394c5b5db0bd5d1ee2ce7590125899$$7d2e0b6f839d5af1f4cd04a9e61fb6b0bb57cdc6dfe13d92b88ae008f1658e4a
explorer:
build: btc-rpc-explorer
ports:
- "3002:3002"
environment:
BTCEXP_HOST: explorer
BTCEXP_BITCOIND_HOST: blue-node
BTCEXP_BITCOIND_PORT: 8332
BTCEXP_BITCOIND_USER: satoshi
BTCEXP_BITCOIND_PASS: waswrong
BTCEXP_NO_INMEMORY_RPC_CACHE: 'true'
networks:
- default
- dmz
snitch:
build: snitch
ports:
- "4566:4567"
volumes:
- "./snitch:/usr/src/app"
command: bundle exec ruby there_is_no_spoon.rb
networks:
- default
- dmz
networks:
default:
internal: true
dmz:
driver: bridge