forked from okx/xlayer-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (77 loc) · 2.77 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
version: '3.5'
networks:
default:
name: hermez
services:
hez-core:
container_name: hez-core
image: hezcore
ports:
- 8123:8123
environment:
- HERMEZCORE_DATABASE_USER=test_user
- HERMEZCORE_DATABASE_PASSWORD=test_password
- HERMEZCORE_DATABASE_NAME=test_db
- HERMEZCORE_DATABASE_HOST=hez-postgres
- HERMEZCORE_ETHERMAN_PRIVATEKEYPATH=/pk/keystore
volumes:
- ./test/test.keystore:/pk/keystore
- ./config/config.local.toml:/app/config.toml
command: ["./hezcore", "run", "--network", "local", "--cfg", "/app/config.toml"]
hez-postgres:
container_name: hez-postgres
image: postgres
ports:
- 5432:5432
environment:
# In order to update this values, you may need to run: docker rm -f -v postgres
- POSTGRES_USER=test_user
- POSTGRES_PASSWORD=test_password
- POSTGRES_DB=test_db
command: ["postgres", "-N", "500"]
hez-explorer:
container_name: hez-explorer
image: hermeznetwork/hermez-node-blockscout:latest
ports:
- 4000:4000
environment:
- NETWORK=POE
- SUBNETWORK=Polygon Hermez
- COIN=ETH
- ETHEREUM_JSONRPC_VARIANT=geth
- ETHEREUM_JSONRPC_HTTP_URL=http://hez-core:8123
- DATABASE_URL=postgres://test_user:test_password@hez-explorer-postgres:5432/explorer
- ECTO_USE_SSL=false
- MIX_ENV=prod
- LOGO=/images/blockscout_logo.svg
- LOGO_FOOTER=/images/blockscout_logo.svg
command: ["/bin/sh", "-c", "mix do ecto.create, ecto.migrate; mix phx.server"]
hez-explorer-postgres:
container_name: hez-explorer-postgres
image: postgres
ports:
- 5433:5432
environment:
# In order to update this values, you may need to run: docker rm -f -v postgres
- POSTGRES_USER=test_user
- POSTGRES_PASSWORD=test_password
- POSTGRES_DB=explorer
command: ["postgres", "-N", "500"]
hez-network:
container_name: hez-network
image: hermeznetwork/geth-zkevm-contracts@sha256:a7e54578bb87096f0d46aba47d2ebf3bb439b845bed38817a6c9e5be2129eb45
ports:
- 8545:8545
hez-prover:
container_name: hez-prover
image: hermeznetwork/hez-mock-prover@sha256:b5df709516e7c3375c87eba4b8c3c267f9ba59d3438c83509b42cf8f5b6aeb5a
ports:
- 50051:50051
- 50052:50052
environment:
- POSTGRES_USER=test_user
- POSTGRES_PASSWORD=test_password
- POSTGRES_DB=test_db
- POSTGRES_HOST=hez-postgres
- POSTGRES_PORT=5432
- PROOF_TIME=1000