-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose-mainnet.yml
49 lines (47 loc) · 1.03 KB
/
docker-compose-mainnet.yml
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
name: "metis-mainnet"
services:
l1dtl:
image: metisdao/dtl:v0.1.2
platform: linux/amd64
stop_grace_period: 30s
network_mode: host
restart: unless-stopped
volumes:
- ./chaindata/l1dtl:/data
env_file:
- ./mainnet/l1dtl.env
- .env
healthcheck:
test: ["CMD-SHELL", "curl http://127.0.0.1:7878"]
interval: 5s
timeout: 3s
retries: 6
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
l2geth:
image: metisdao/l2geth:v0.1.2
platform: linux/amd64
restart: unless-stopped
stop_grace_period: 2m
network_mode: host
env_file:
- ./mainnet/l2geth.env
depends_on:
l1dtl:
condition: service_healthy
healthcheck:
test: ["CMD", "is-l2geth-stalled"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
volumes:
- ./chaindata/l2geth:/root/.ethereum
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"