|
1 | 1 | services:
|
| 2 | + demo-l1-network: |
| 3 | + image: ghcr.io/espressosystems/geth-l1:main |
| 4 | + command: --dev --dev.period=1 |
| 5 | + ports: |
| 6 | + - 8545:8545 |
| 7 | + - 8546:8546 |
| 8 | + volumes: |
| 9 | + - "./geth-config/genesis-default.json:/genesis.json" |
| 10 | + - "./geth-config/test-jwt-secret.txt:/config/test-jwt-secret.txt" |
| 11 | + networks: |
| 12 | + timeboost: |
| 13 | + ipv4_address: 172.20.0.11 |
| 14 | + healthcheck: |
| 15 | + test: ["CMD", "curl", "-s", "-X", "POST", "--data", '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}', "-H", "Content-Type: application/json", "http://localhost:8545"] |
| 16 | + interval: 5s |
| 17 | + timeout: 3s |
| 18 | + retries: 10 |
| 19 | + deploy-contract: |
| 20 | + image: timeboost:latest |
| 21 | + environment: |
| 22 | + - RUST_LOG=debug |
| 23 | + entrypoint: ["/app/deploy-contract-docker"] |
| 24 | + depends_on: |
| 25 | + demo-l1-network: |
| 26 | + condition: service_healthy |
| 27 | + networks: |
| 28 | + - timeboost |
2 | 29 | node0:
|
3 | 30 | image: timeboost:latest
|
4 | 31 | command:
|
5 | 32 | [
|
6 | 33 | "/app/timeboost",
|
7 | 34 | "--committee-id", "0",
|
8 | 35 | "--config", "node_0.toml",
|
| 36 | + "--https-only", "false", |
9 | 37 | ]
|
10 | 38 | networks:
|
11 | 39 | timeboost:
|
12 | 40 | ipv4_address: 172.20.0.2
|
13 | 41 | environment:
|
14 |
| - - RUST_LOG=timeboost=info,sailfish=info,cliquenet=info |
15 |
| - - TIMEBOOST_SAILFISH_PORT=8000 |
16 |
| - - TIMEBOOST_DECRYPT_PORT=8001 |
17 |
| - - TIMEBOOST_CERTIFIER_PORT=8002 |
18 |
| - - TIMEBOOST_RPC_PORT=8800 |
19 |
| - - TIMEBOOST_METRICS_PORT=9000 |
| 42 | + - RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info |
20 | 43 | ports:
|
21 | 44 | - "8000:8000"
|
22 | 45 | - "8030:8001"
|
23 | 46 | - "8060:8002"
|
| 47 | + - "8080:8003" |
| 48 | + - "8100:8004" |
24 | 49 | - "8800:8800"
|
25 | 50 | - "9000:9000"
|
26 | 51 | depends_on:
|
27 |
| - nitro-dev: |
28 |
| - condition: service_healthy |
| 52 | + deploy-contract: |
| 53 | + condition: service_completed_successfully |
29 | 54 | node1:
|
30 | 55 | image: timeboost:latest
|
31 | 56 | command:
|
32 | 57 | [
|
33 | 58 | "/app/timeboost",
|
34 | 59 | "--committee-id", "0",
|
35 | 60 | "--config", "node_1.toml",
|
| 61 | + "--https-only", "false", |
36 | 62 | ]
|
37 | 63 | networks:
|
38 | 64 | timeboost:
|
39 | 65 | ipv4_address: 172.20.0.3
|
40 | 66 | environment:
|
41 |
| - - RUST_LOG=timeboost=info,sailfish=info,cliquenet=info |
42 |
| - - TIMEBOOST_SAILFISH_PORT=8000 |
43 |
| - - TIMEBOOST_DECRYPT_PORT=8001 |
44 |
| - - TIMEBOOST_CERTIFIER_PORT=8002 |
45 |
| - - TIMEBOOST_RPC_PORT=8800 |
46 |
| - - TIMEBOOST_METRICS_PORT=9000 |
| 67 | + - RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info |
47 | 68 | ports:
|
48 | 69 | - "8001:8000"
|
49 | 70 | - "8031:8001"
|
50 | 71 | - "8061:8002"
|
| 72 | + - "8081:8003" |
| 73 | + - "8101:8004" |
51 | 74 | - "8801:8800"
|
52 | 75 | - "9001:9000"
|
53 | 76 | depends_on:
|
54 |
| - nitro-dev: |
55 |
| - condition: service_healthy |
| 77 | + deploy-contract: |
| 78 | + condition: service_completed_successfully |
56 | 79 | node2:
|
57 | 80 | image: timeboost:latest
|
58 | 81 | command:
|
59 | 82 | [
|
60 | 83 | "/app/timeboost",
|
61 | 84 | "--committee-id", "0",
|
62 | 85 | "--config", "node_2.toml",
|
| 86 | + "--https-only", "false", |
63 | 87 | ]
|
64 | 88 | networks:
|
65 | 89 | timeboost:
|
66 | 90 | ipv4_address: 172.20.0.4
|
67 | 91 | environment:
|
68 |
| - - RUST_LOG=timeboost=info,sailfish=info,cliquenet=info |
69 |
| - - TIMEBOOST_SAILFISH_PORT=8000 |
70 |
| - - TIMEBOOST_DECRYPT_PORT=8001 |
71 |
| - - TIMEBOOST_CERTIFIER_PORT=8002 |
72 |
| - - TIMEBOOST_RPC_PORT=8800 |
73 |
| - - TIMEBOOST_METRICS_PORT=9000 |
| 92 | + - RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info |
74 | 93 | ports:
|
75 | 94 | - "8002:8000"
|
76 | 95 | - "8032:8001"
|
77 | 96 | - "8062:8002"
|
| 97 | + - "8082:8003" |
| 98 | + - "8102:8004" |
78 | 99 | - "8802:8800"
|
79 | 100 | - "9002:9000"
|
80 | 101 | depends_on:
|
81 |
| - nitro-dev: |
82 |
| - condition: service_healthy |
| 102 | + deploy-contract: |
| 103 | + condition: service_completed_successfully |
83 | 104 | node3:
|
84 | 105 | image: timeboost:latest
|
85 | 106 | command:
|
86 | 107 | [
|
87 | 108 | "/app/timeboost",
|
88 | 109 | "--committee-id", "0",
|
89 | 110 | "--config", "node_3.toml",
|
| 111 | + "--https-only", "false", |
90 | 112 | ]
|
91 | 113 | networks:
|
92 | 114 | timeboost:
|
93 | 115 | ipv4_address: 172.20.0.5
|
94 | 116 | environment:
|
95 |
| - - RUST_LOG=timeboost=info,sailfish=info,cliquenet=info |
96 |
| - - TIMEBOOST_SAILFISH_PORT=8000 |
97 |
| - - TIMEBOOST_DECRYPT_PORT=8001 |
98 |
| - - TIMEBOOST_CERTIFIER_PORT=8002 |
99 |
| - - TIMEBOOST_RPC_PORT=8800 |
100 |
| - - TIMEBOOST_METRICS_PORT=9000 |
| 117 | + - RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=debug,robusta=info,block_checker=info |
101 | 118 | ports:
|
102 | 119 | - "8003:8000"
|
103 | 120 | - "8033:8001"
|
104 | 121 | - "8063:8002"
|
| 122 | + - "8083:8003" |
| 123 | + - "8103:8004" |
105 | 124 | - "8803:8800"
|
106 | 125 | - "9003:9000"
|
107 | 126 | depends_on:
|
108 |
| - nitro-dev: |
109 |
| - condition: service_healthy |
| 127 | + deploy-contract: |
| 128 | + condition: service_completed_successfully |
110 | 129 | node4:
|
111 | 130 | image: timeboost:latest
|
112 | 131 | command:
|
113 | 132 | [
|
114 | 133 | "/app/timeboost",
|
115 | 134 | "--committee-id", "0",
|
116 | 135 | "--config", "node_4.toml",
|
| 136 | + "--https-only", "false", |
117 | 137 | ]
|
118 | 138 | networks:
|
119 | 139 | timeboost:
|
120 | 140 | ipv4_address: 172.20.0.6
|
121 | 141 | environment:
|
122 |
| - - RUST_LOG=timeboost=info,sailfish=info,cliquenet=info |
123 |
| - - TIMEBOOST_SAILFISH_PORT=8000 |
124 |
| - - TIMEBOOST_DECRYPT_PORT=8001 |
125 |
| - - TIMEBOOST_CERTIFIER_PORT=8002 |
126 |
| - - TIMEBOOST_RPC_PORT=8800 |
127 |
| - - TIMEBOOST_METRICS_PORT=9000 |
| 142 | + - RUST_LOG=timeboost=info,sailfish=warn,cliquenet=warn,timeboost-builder=warn,robusta=info,block_checker=info |
128 | 143 | ports:
|
129 | 144 | - "8004:8000"
|
130 | 145 | - "8034:8001"
|
131 | 146 | - "8064:8002"
|
| 147 | + - "8084:8003" |
| 148 | + - "8104:8004" |
132 | 149 | - "8804:8800"
|
133 | 150 | - "9004:9000"
|
134 | 151 | depends_on:
|
135 |
| - nitro-dev: |
136 |
| - condition: service_healthy |
137 |
| - nitro-dev: |
138 |
| - image: offchainlabs/nitro-node:v3.2.1-d81324d |
| 152 | + deploy-contract: |
| 153 | + condition: service_completed_successfully |
| 154 | + block-maker: |
| 155 | + image: timeboost:latest |
139 | 156 | ports:
|
140 |
| - - "8547:8547" |
| 157 | + - "55000:55000" |
| 158 | + command: |
| 159 | + [ |
| 160 | + "/app/block-maker", |
| 161 | + "--port", "55000", |
| 162 | + "--committee", "committee.toml", |
| 163 | + ] |
| 164 | + environment: |
| 165 | + - RUST_LOG=info |
141 | 166 | networks:
|
142 | 167 | timeboost:
|
143 | 168 | ipv4_address: 172.20.0.12
|
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 |
| 169 | + block-checker: |
| 170 | + image: timeboost:latest |
| 171 | + command: |
| 172 | + [ |
| 173 | + "/app/block-checker", |
| 174 | + "--config", "node_0.toml", |
| 175 | + "--committee", "committee.toml", |
| 176 | + "--committee-id", "0", |
| 177 | + "--blocks", "10000", |
| 178 | + "--https-only", "false", |
| 179 | + ] |
| 180 | + environment: |
| 181 | + - RUST_BACKTRACE=1 |
| 182 | + - RUST_LOG=trace |
| 183 | + networks: |
| 184 | + timeboost: |
| 185 | + ipv4_address: 172.20.0.15 |
| 186 | + depends_on: |
| 187 | + deploy-contract: |
| 188 | + condition: service_completed_successfully |
150 | 189 | yapper:
|
151 |
| - image: yapper:latest |
| 190 | + image: timeboost:latest |
152 | 191 | command:
|
153 | 192 | [
|
154 | 193 | "/app/yapper",
|
155 |
| - "--tps", |
156 |
| - "1", |
157 |
| - "--keyset-file", |
158 |
| - "committee.json", |
| 194 | + "--keyset-file", "committee.toml", |
159 | 195 | ]
|
| 196 | + environment: |
| 197 | + - RUST_LOG=info |
160 | 198 | networks:
|
161 | 199 | timeboost:
|
162 | 200 | ipv4_address: 172.20.0.13
|
163 |
| - |
| 201 | + espresso-dev-node: |
| 202 | + pid: host |
| 203 | + image: ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:latest |
| 204 | + ports: |
| 205 | + - "41000:41000" |
| 206 | + - "41003:41003" |
| 207 | + - "20000:20000" |
| 208 | + environment: |
| 209 | + - ESPRESSO_BUILDER_PORT=41003 |
| 210 | + - ESPRESSO_DEPLOYER_ACCOUNT_INDEX=5 |
| 211 | + - ESPRESSO_DEV_NODE_PORT=20000 |
| 212 | + - ESPRESSO_SEQUENCER_API_PORT=41000 |
| 213 | + - ESPRESSO_SEQUENCER_ETH_MNEMONIC=indoor dish desk flag debris potato excuse depart ticket judge file exit |
| 214 | + - ESPRESSO_SEQUENCER_L1_PROVIDER=http://172.20.0.11:8545 |
| 215 | + - ESPRESSO_SEQUENCER_DATABASE_MAX_CONNECTIONS=25 |
| 216 | + - ESPRESSO_DEV_NODE_EPOCH_HEIGHT=1000000 |
| 217 | + - ESPRESSO_DEV_NODE_MAX_BLOCK_SIZE=10485760 |
| 218 | + - ESPRESSO_SEQUENCER_STORAGE_PATH=/data/espresso |
| 219 | + - RUST_LOG=INFO |
| 220 | + - RUST_LOG_FORMAT |
| 221 | + - ESPRESSO_DEV_NODE_VERSION=0.4 |
| 222 | + volumes: |
| 223 | + - espresso_storage:/data/espresso |
| 224 | + depends_on: |
| 225 | + demo-l1-network: |
| 226 | + condition: service_healthy |
| 227 | + networks: |
| 228 | + timeboost: |
| 229 | + ipv4_address: 172.20.0.14 |
164 | 230 | networks:
|
165 | 231 | timeboost:
|
166 | 232 | driver: bridge
|
167 | 233 | ipam:
|
168 | 234 | driver: default
|
169 | 235 | config:
|
170 | 236 | - subnet: 172.20.0.0/16
|
| 237 | + |
| 238 | +volumes: |
| 239 | + espresso_storage: |
0 commit comments