-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
210 lines (201 loc) · 5.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
210 lines (201 loc) · 5.06 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
version: "3.9"
services:
force-clone:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data/optimism:/app/data/optimism
- ./data/op-geth:/app/data/op-geth
- ./data/deployments:/app/data/deployments
- ./data/configurations:/app/data/configurations
- ./data/bin:/app/data/bin
- ./data/datadir:/app/data/datadir
env_file:
- .env
- paths.env
celestia-da:
user: root
build:
context: .
dockerfile: Dockerfile.celestia
volumes:
- ./data/celestia:/home/celestia/${TARGET_FOLDER_NAME}/
command: ["/bin/bash", "-c", "/app/celestia-da.sh"]
env_file:
- .env
- paths.env
- celestia.env
expose:
- 26650
ports:
- "26659:26659"
- "26658:26658"
healthcheck:
test: [
"CMD-SHELL",
"\
if [ \"$${SKIP_HEALTHCHECK}\" = \"true\" ]; then \
curl -f http://localhost:26659/header/1; \
else \
authToken=$$(celestia-da ${CELESTIA_NODE_TYPE} auth admin --p2p.network $$DA_P2P_NETWORK) && \
catch_up_done=$$(curl -s -X POST -H 'Content-Type: application/json' -H \"Authorization: Bearer $$authToken\" --data '{\"id\":1, \"jsonrpc\":\"2.0\", \"method\":\"das.SamplingStats\", \"params\":[]}' http://localhost:26658 | jq -r '.result.catch_up_done') && \
[ \"$$catch_up_done\" = \"true\" ]; \
fi",
]
interval: 2m
timeout: 10s
retries: 60
stop_grace_period: 10m
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
profiles: ["celestia"]
op-geth:
build:
context: .
dockerfile: Dockerfile.services
args:
ENTRYPOINT_SCRIPT: op-geth.sh
volumes:
- ./data/bin:/app/data/bin
- ./data/datadir:/app/data/datadir
- ./data/configurations:/app/data/configurations
depends_on:
force-clone:
condition: service_completed_successfully
celestia-da:
condition: service_healthy
required: false
env_file:
- .env
- paths.env
- opgeth.env
ports:
- "8545:8545"
- "7303:7303"
- "30333:30333/udp"
- "30333:30333/tcp"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8545 || exit 1"]
interval: 30s
timeout: 10s
retries: 15
stop_grace_period: 1h
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
op-node:
build:
context: .
dockerfile: Dockerfile.services
args:
ENTRYPOINT_SCRIPT: op-node.sh
volumes:
- ./data/bin:/app/data/bin
- ./data/configurations:/app/data/configurations
depends_on:
op-geth:
condition: service_healthy
env_file:
- .env
- paths.env
- opnode.env
ports:
- "8547:8547"
- "7300:7300"
- "9221:9221/udp"
- "9221:9221/tcp"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8547 || exit 1"]
interval: 30s
timeout: 10s
retries: 5
stop_grace_period: 10m
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
op-batcher:
build:
context: .
dockerfile: Dockerfile.services
args:
ENTRYPOINT_SCRIPT: op-batcher.sh
volumes:
- ./data/bin:/app/data/bin
depends_on:
op-geth:
condition: service_healthy
op-node:
condition: service_healthy
env_file:
- .env
- paths.env
- opbatcher.env
ports:
- "8548:8548"
- "7301:7301"
stop_grace_period: 1m30s
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
profiles: ["sequencer"]
op-proposer:
build:
context: .
dockerfile: Dockerfile.services
args:
ENTRYPOINT_SCRIPT: op-proposer.sh
volumes:
- ./data/bin:/app/data/bin
- ./data/deployments:/app/data/deployments
depends_on:
op-geth:
condition: service_healthy
op-node:
condition: service_healthy
env_file:
- .env
- paths.env
- opproposer.env
ports:
- "8560:8560"
- "7302:7302"
stop_grace_period: 1m30s
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
profiles: ["sequencer"]
grafana:
image: grafana/grafana:11.1.0
restart: unless-stopped
env_file:
- grafana.env
volumes:
- ./monitoring/grafana/provisioning/:/etc/grafana/provisioning/:ro
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards
- grafana_data:/var/lib/grafana
ports:
- 3000:3000
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
env_file:
- .env
volumes:
- ./monitoring/prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- 9090:9090
json-server:
build:
context: ./serve
dockerfile: Dockerfile
volumes:
- ./data/deployments:/app/data/deployments
ports:
- "3001:3001"
restart: unless-stopped
volumes:
grafana_data:
prometheus_data: