forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
102 lines (98 loc) · 2.71 KB
/
docker-compose.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
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
version: "3.5"
networks:
default:
name: zkevm
services:
zkevm-rpc:
container_name: zkevm-rpc
depends_on:
zkevm-pool-db:
condition: service_healthy
zkevm-state-db:
condition: service_healthy
zkevm-sync:
condition: service_started
image: zkevm-node
ports:
- 8545:8545
- 9091:9091 # needed if metrics enabled
environment:
- ZKEVM_NODE_STATEDB_HOST=zkevm-state-db
- ZKEVM_NODE_POOL_HOST=zkevm-pool-db
- ZKEVM_NODE_RPC_BROADCASTURI=zkevm-broadcast:61090
volumes:
- ./config/environments/public/public.node.config.toml:/app/config.toml
- ./config/environments/public/public.genesis.config.json:/app/genesis.json
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --genesis /app/genesis.json --cfg /app/config.toml --components rpc"
zkevm-sync:
container_name: zkevm-sync
depends_on:
zkevm-state-db:
condition: service_healthy
image: zkevm-node
environment:
- ZKEVM_NODE_STATEDB_HOST=zkevm-state-db
volumes:
- ./config/environments/public/public.node.config.toml:/app/config.toml
- ./config/environments/public/public.genesis.config.json:/app/genesis.json
command:
- "/bin/sh"
- "-c"
- "/app/zkevm-node run --genesis /app/genesis.json --cfg /app/config.toml --components synchronizer"
zkevm-state-db:
container_name: zkevm-state-db
image: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
ports:
- 5432:5432
volumes:
- ./db/scripts/init_prover_db.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_USER=state_user
- POSTGRES_PASSWORD=state_password
- POSTGRES_DB=state_db
command: [ "postgres", "-N", "500" ]
zkevm-pool-db:
container_name: zkevm-pool-db
image: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
ports:
- 5433:5432
environment:
- POSTGRES_USER=pool_user
- POSTGRES_PASSWORD=pool_password
- POSTGRES_DB=pool_db
command: [ "postgres", "-N", "500" ]
zkevm-prover:
container_name: zkevm-prover
image: hermeznetwork/zkevm-prover:798d9e0
ports:
- 50061:50061 # MT
- 50071:50071 # Executor
volumes:
- ./config/environments/public/public.prover.config.json:/usr/src/app/config.json
command: >
zkProver -c /usr/src/app/config.json