@@ -5,10 +5,7 @@ services:
5
5
[
6
6
" /app/timeboost" ,
7
7
" --committee-id" , "0",
8
- " --http-port" , "8800",
9
- " --config" , "docker/node_0.toml",
10
- " --stamp" , "/tmp/timeboost.stamp",
11
- " --namespace" , "10101",
8
+ " --config" , "node_0.toml",
12
9
]
13
10
networks :
14
11
timeboost :
@@ -26,16 +23,16 @@ services:
26
23
- " 8060:8002"
27
24
- " 8800:8800"
28
25
- " 9000:9000"
26
+ depends_on :
27
+ nitro-dev :
28
+ condition : service_healthy
29
29
node1 :
30
30
image : timeboost:latest
31
31
command :
32
32
[
33
33
" /app/timeboost" ,
34
34
" --committee-id" , "0",
35
- " --http-port" , "8800",
36
- " --config" , "docker/node_1.toml",
37
- " --stamp" , "/tmp/timeboost.stamp",
38
- " --namespace" , "10101",
35
+ " --config" , "node_1.toml",
39
36
]
40
37
networks :
41
38
timeboost :
@@ -53,16 +50,16 @@ services:
53
50
- " 8061:8002"
54
51
- " 8801:8800"
55
52
- " 9001:9000"
53
+ depends_on :
54
+ nitro-dev :
55
+ condition : service_healthy
56
56
node2 :
57
57
image : timeboost:latest
58
58
command :
59
59
[
60
60
" /app/timeboost" ,
61
61
" --committee-id" , "0",
62
- " --http-port" , "8800",
63
- " --config" , "docker/node_2.toml",
64
- " --stamp" , "/tmp/timeboost.stamp",
65
- " --namespace" , "10101",
62
+ " --config" , "node_2.toml",
66
63
]
67
64
networks :
68
65
timeboost :
@@ -80,16 +77,16 @@ services:
80
77
- " 8062:8002"
81
78
- " 8802:8800"
82
79
- " 9002:9000"
80
+ depends_on :
81
+ nitro-dev :
82
+ condition : service_healthy
83
83
node3 :
84
84
image : timeboost:latest
85
85
command :
86
86
[
87
87
" /app/timeboost" ,
88
88
" --committee-id" , "0",
89
- " --http-port" , "8800",
90
- " --config" , "docker/node_3.toml",
91
- " --stamp" , "/tmp/timeboost.stamp",
92
- " --namespace" , "10101",
89
+ " --config" , "node_3.toml",
93
90
]
94
91
networks :
95
92
timeboost :
@@ -107,17 +104,16 @@ services:
107
104
- " 8063:8002"
108
105
- " 8803:8800"
109
106
- " 9003:9000"
107
+ depends_on :
108
+ nitro-dev :
109
+ condition : service_healthy
110
110
node4 :
111
111
image : timeboost:latest
112
112
command :
113
113
[
114
114
" /app/timeboost" ,
115
115
" --committee-id" , "0",
116
- " --http-port" , "8800",
117
- " --keyset-file" , "docker.json",
118
- " --config" , "docker/node_4.toml",
119
- " --stamp" , "/tmp/timeboost.stamp",
120
- " --namespace" , "10101",
116
+ " --config" , "node_4.toml",
121
117
]
122
118
networks :
123
119
timeboost :
@@ -135,6 +131,9 @@ services:
135
131
- " 8064:8002"
136
132
- " 8804:8800"
137
133
- " 9004:9000"
134
+ depends_on :
135
+ nitro-dev :
136
+ condition : service_healthy
138
137
nitro-dev :
139
138
image : offchainlabs/nitro-node:v3.2.1-d81324d
140
139
ports :
@@ -143,6 +142,11 @@ services:
143
142
timeboost :
144
143
ipv4_address : 172.20.0.12
145
144
command : --dev --http.addr 0.0.0.0 --http.api=net,web3,eth,debug
145
+ healthcheck :
146
+ test : ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://localhost:8547"]
147
+ interval : 5s
148
+ timeout : 3s
149
+ retries : 10
146
150
yapper :
147
151
image : yapper:latest
148
152
command :
0 commit comments