Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
229 lines (218 loc) · 6.96 KB
/
Copy pathdocker-compose.yml
File metadata and controls
229 lines (218 loc) · 6.96 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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
services:
celestia-init:
image: ghcr.io/celestiaorg/celestia-app-standalone:v9.0.4-mocha
container_name: celestia-init
entrypoint: /scripts/init.sh
volumes:
- ./testnet/celestia-app/init.sh:/scripts/init.sh:ro
- celestia-app:/home/celestia/.celestia-app
restart: "no"
celestia-validator:
image: ghcr.io/celestiaorg/celestia-app-standalone:v9.0.4-mocha
container_name: celestia-validator
ports:
- "26656:26656"
- "26657:26657"
- "1317:1317"
- "9090:9090"
healthcheck:
test:
[
"CMD-SHELL",
'bh=$(curl -sf http://localhost:26657/status | jq -r ''.result.sync_info.latest_block_height''); if [ "$$bh" -gt 1 ]; then exit 0; else exit 1; fi',
]
interval: 30s
timeout: 5s
start_period: 10s
volumes:
- celestia-app:/home/celestia/.celestia-app
command: >
start --force-no-bbr --api.enable=true --api.address=tcp://0.0.0.0:1317 --home /home/celestia/.celestia-app
depends_on:
celestia-init:
condition: service_completed_successfully
networks:
- celestia-net
celestia-bridge:
image: ghcr.io/celestiaorg/celestia-node:v0.30.0-mocha
container_name: celestia-bridge
volumes:
- ./testnet/celestia-node/init.sh:/scripts/init.sh:ro
- celestia-bridge:/home/celestia
entrypoint: /scripts/init.sh
command: celestia bridge start --log.level.module share/discovery:fatal --keyring.keyname node --rpc.skip-auth
ports:
- "26658:26658"
- "2121:2121"
healthcheck:
test: >
curl -sf -X POST http://localhost:26658
-H "Content-Type: application/json"
-d '{"id":1,"jsonrpc":"2.0","method":"node.Ready","params":[]}' | grep true
interval: 10s
start_period: 10s
depends_on:
celestia-validator:
condition: service_healthy
networks:
- celestia-net
anvil:
# Lightweight standalone EVM chain for E2E testing
# This is a normal EVM chain, independent from Celestia (no DA posting)
# Connected to Celestia only via Hyperlane cross-chain messaging
image: ghcr.io/foundry-rs/foundry:latest
container_name: anvil
ports:
- "8545:8545" # rpc
healthcheck:
test:
[
"CMD-SHELL",
"cast block-number --rpc-url http://localhost:8545 > /dev/null 2>&1",
]
interval: 5s
timeout: 3s
start_period: 2s
networks:
- celestia-net
entrypoint: ["/bin/sh", "-c"]
command:
- |
anvil --host 0.0.0.0 --chain-id 1234 --block-time 1 --accounts 10 --balance 10000 --mnemonic "test test test test test test test test test test test junk"
hyperlane-init:
image: ghcr.io/celestiaorg/hyperlane-init:sha-9406639
platform: linux/amd64
container_name: hyperlane-init
volumes:
- ./testnet/hyperlane:/home/hyperlane/
working_dir: /home/hyperlane
entrypoint: "scripts/docker-entrypoint.sh"
depends_on:
celestia-validator:
condition: service_healthy
anvil:
condition: service_healthy
restart: "no"
networks:
- celestia-net
forwarding-backend:
image: forwarding-relayer:local
container_name: forwarding-backend
ports:
- "8080:8080"
- "9091:9091"
environment:
- PORT=8080
- DB_PATH=/app/storage/backend.db
- BACKEND_METRICS_PORT=9091
volumes:
- forwarding-backend-data:/app/storage
command: ["backend"]
depends_on:
celestia-validator:
condition: service_healthy
networks:
- celestia-net
healthcheck:
test:
["CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/8080' || exit 1"]
interval: 5s
timeout: 3s
start_period: 5s
forwarding-relayer:
image: forwarding-relayer:local
container_name: forwarding-relayer
ports:
- "9092:9092"
environment:
- CELESTIA_GRPC=http://celestia-validator:9090
- CELESTIA_RPC=http://celestia-validator:26657
- BACKEND_URL=http://forwarding-backend:8080
- PRIVATE_KEY_HEX=6e30efb1d3ebd30d1ba08c8d5fc9b190e08394009dc1dd787a69e60c33288a8c
- POLL_INTERVAL=6
- IGP_FEE_BUFFER=1.1
# E2E-tuned retention windows (production defaults are 86400 / 604800):
# drop never-funded addresses after 5 min, retire inactive ones after 10 min.
- MAX_REQUEST_AGE_SECONDS=300
- MAX_ADDRESS_INACTIVITY_SECONDS=600
- MAINTENANCE_INTERVAL=15
# Stay 2 blocks behind the tip so the scanner never reads a block whose
# tx-results the node hasn't indexed yet (NewBlock-vs-RPC read-after-write).
- BLOCK_CONFIRMATION_DEPTH=2
# Balance-poll backstop sweep (production default 3600): emergency fallback that
# re-checks live addresses. Shortened to 60s here only so the e2e exercises the
# path; with the confirmation depth above it should never actually be the thing
# that catches a deposit.
- BALANCE_POLL_INTERVAL=60
- RELAYER_METRICS_PORT=9092
volumes:
- forwarding-relayer-data:/app/storage
command: ["relayer"]
depends_on:
forwarding-backend:
condition: service_healthy
hyperlane-init:
condition: service_completed_successfully
networks:
- celestia-net
relayer:
image: gcr.io/abacus-labs-dev/hyperlane-agent:agents-v1.7.0
platform: linux/amd64
container_name: relayer
environment:
- CONFIG_FILES=/app/config/config.json
volumes:
- ./testnet/hyperlane/relayer-config.json:/app/config/config.json
command: "/app/relayer"
depends_on:
hyperlane-init:
condition: service_completed_successfully
networks:
- celestia-net
prometheus:
image: prom/prometheus:latest
container_name: prometheus
profiles:
- monitoring
ports:
- "9095:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.enable-lifecycle"
depends_on:
forwarding-backend:
condition: service_healthy
forwarding-relayer:
condition: service_started
networks:
- celestia-net
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
profiles:
- monitoring
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- ./monitoring/grafana/provisioning/datasources/prometheus.yml:/etc/grafana/provisioning/datasources/prometheus.yml:ro
- ./monitoring/grafana/provisioning/dashboards/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml:ro
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
prometheus:
condition: service_started
networks:
- celestia-net
volumes:
celestia-app:
celestia-bridge:
forwarding-backend-data:
forwarding-relayer-data:
networks:
celestia-net:
driver: bridge