This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
169 lines (148 loc) · 4.07 KB
/
docker-compose.yaml
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
version: "3"
networks:
lambada-coprocessor-network:
name: lambada-coprocessor-network
driver: bridge
services:
anvil:
build:
context: .
dockerfile: Dockerfile-anvil
container_name: anvil
ports:
- 127.0.0.1:8545:8545
volumes:
- ./tests/anvil/avs-and-eigenlayer-deployed-anvil-state.json:/root/.anvil/state.json
- ./:/cartesi-lambada-coprocessor/
command: /cartesi-lambada-coprocessor/tests/anvil/run-anvil-devnet.sh
healthcheck:
test: bash -c "[ -f /cartesi-lambada-coprocessor/tests/anvil/devnet-operators-ready.flag ]"
interval: 3s
retries: 300
start_period: 15s
networks:
- lambada-coprocessor-network
aggregator-storage:
image: mysql
volumes:
- ./tests/mysql/script:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- lambada-coprocessor-network
aggregator:
build:
context: .
dockerfile: aggregator.Dockerfile
container_name: lambada-coprocessor-aggregator
ports:
- 127.0.0.1:8080:8080
depends_on:
anvil:
condition: service_healthy
aggregator-storage:
condition: service_started
volumes:
- ./:/lambada-coprocessor/
working_dir: /lambada-coprocessor
command:
- --config
- tests/nodes/aggregator/config-devnet.yaml
- --private-key
- "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6"
- --database-password
- password
networks:
- lambada-coprocessor-network
healthcheck:
test: bash -c "[ cat < /dev/null > /dev/tcp/0.0.0.0/8080 ]"
interval: 10s
retries: 300
start_period: 15s
machine1:
image: ghcr.io/zippiehq/cartesi-lambada:latest
container_name: lambada-coprocessor-machine1
ports:
- 127.0.0.1:5001:5001
- 127.0.0.1:3001:3033
volumes:
- ./tests/nodes/operators/1/data:/data
- ./machine/data-preload:/data/preload
networks:
- lambada-coprocessor-network
environment:
- COMPUTE_ONLY=1
operator1:
build:
context: .
dockerfile: operator.Dockerfile
container_name: lambada-coprocessor-operator1
depends_on:
aggregator:
condition: service_healthy
machine1:
condition: service_started
volumes:
- ./:/lambada-coprocessor/
working_dir: /lambada-coprocessor
command: tests/nodes/operators/1/run-devnet.sh
networks:
- lambada-coprocessor-network
machine2:
image: ghcr.io/zippiehq/cartesi-lambada:latest
container_name: lambada-coprocessor-machine2
ports:
- 127.0.0.1:5002:5001
- 127.0.0.1:3002:3033
volumes:
- ./tests/nodes/operators/2/data:/data
- ./machine/data-preload:/data/preload
networks:
- lambada-coprocessor-network
environment:
- COMPUTE_ONLY=1
operator2:
build:
context: .
dockerfile: operator.Dockerfile
container_name: lambada-coprocessor-operator2
depends_on:
aggregator:
condition: service_healthy
machine2:
condition: service_started
volumes:
- ./:/lambada-coprocessor/
working_dir: /lambada-coprocessor
command: tests/nodes/operators/2/run-devnet.sh
networks:
- lambada-coprocessor-network
machine3:
image: ghcr.io/zippiehq/cartesi-lambada:latest
container_name: lambada-coprocessor-machine3
ports:
- 127.0.0.1:5003:5001
- 127.0.0.1:3003:3033
volumes:
- ./tests/nodes/operators/3/data:/data
- ./machine/data-preload:/data/preload
networks:
- lambada-coprocessor-network
environment:
- COMPUTE_ONLY=1
operator3:
build:
context: .
dockerfile: operator.Dockerfile
container_name: lambada-coprocessor-operator3
depends_on:
aggregator:
condition: service_healthy
machine3:
condition: service_started
volumes:
- ./:/lambada-coprocessor/
working_dir: /lambada-coprocessor
command: tests/nodes/operators/3/run-devnet.sh
networks:
- lambada-coprocessor-network