forked from MetisProtocol/metis-replica-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-mainnet.yml
51 lines (49 loc) · 1.02 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
50
51
version: "3"
services:
l1dtl:
image: ericlee42/metis:dtl-3
restart: unless-stopped
platform: linux/amd64
stop_grace_period: 30s
expose:
- 7878
volumes:
- ./chaindata/l1dtl:/data
env_file:
- ./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: ericlee42/metis:l2geth-5
platform: linux/amd64
restart: unless-stopped
stop_grace_period: 2m
env_file:
- ./l2geth.env
depends_on:
l1dtl:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl http://127.0.0.1:8545"]
interval: 5s
timeout: 3s
retries: 6
volumes:
- ./chaindata/l2geth:/root/.ethereum
ports:
- 8546:8546
- 8545:8545
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"