-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
173 lines (164 loc) · 4.99 KB
/
docker-compose.yml
File metadata and controls
173 lines (164 loc) · 4.99 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
services:
celestia-init:
image: ghcr.io/celestiaorg/celestia-app-standalone:v7.0.0-rc0
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:v7.0.0-rc0
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-zkevm-net
celestia-bridge:
image: ghcr.io/celestiaorg/celestia-node:v0.26.0-arabica
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-zkevm-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-zkevm-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:
build:
context: .
dockerfile: hyperlane/Dockerfile
image: ghcr.io/celestiaorg/hyperlane-init:local
container_name: hyperlane-init
volumes:
- ./hyperlane:/home/hyperlane/
- ./testdata/vkeys:/home/hyperlane/testdata/vkeys:ro
working_dir: /home/hyperlane
entrypoint: "scripts/docker-entrypoint.sh"
depends_on:
celestia-validator:
condition: service_healthy
anvil:
condition: service_healthy
restart: "no"
networks:
- celestia-zkevm-net
forwarding-backend:
image: forwarding-relayer:local
container_name: forwarding-backend
ports:
- "8080:8080"
environment:
- PORT=8080
- DB_PATH=/app/storage/backend.db
volumes:
- forwarding-backend-data:/app/storage
command: ["backend"]
depends_on:
celestia-validator:
condition: service_healthy
networks:
- celestia-zkevm-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
environment:
- CELESTIA_GRPC=http://celestia-validator:9090
- BACKEND_URL=http://forwarding-backend:8080
- PRIVATE_KEY_HEX=6e30efb1d3ebd30d1ba08c8d5fc9b190e08394009dc1dd787a69e60c33288a8c
- POLL_INTERVAL=6
- IGP_FEE_BUFFER=1.1
- BALANCE_CACHE_PATH=/app/storage/balance_cache.db
volumes:
- forwarding-relayer-data:/app/storage
command: ["relayer"]
depends_on:
forwarding-backend:
condition: service_healthy
hyperlane-init:
condition: service_completed_successfully
networks:
- celestia-zkevm-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:
- ./hyperlane/relayer-config.json:/app/config/config.json
command: "/app/relayer"
depends_on:
hyperlane-init:
condition: service_completed_successfully
networks:
- celestia-zkevm-net
volumes:
celestia-app:
celestia-bridge:
forwarding-backend-data:
forwarding-relayer-data:
networks:
celestia-zkevm-net:
driver: bridge