This repository has been archived by the owner on Dec 5, 2021. It is now read-only.
forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-replica-service.yml
61 lines (56 loc) · 1.74 KB
/
docker-compose-replica-service.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
#############################
# OMGX replica service
# This service is used to replicate the l2geth
#
# RUN:
# cd /ops
# docker-compose -f docker-compose-omgx-replica.yml up
#############################
version: "3"
services:
dtl-replica:
image: omgx/data-transport-layer:production-v2
deploy:
replicas: 1
entrypoint: ./dtl.sh
env_file:
- ./envs/dtl.env
# set the rest of the env vars for the network whcih do not
# depend on the docker-compose setup
environment:
# used for setting the address manager address
URL: https://rinkeby.boba.network:8081/addresses.json
DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT: https://rinkeby.infura.io/v3/INFURA_KEY
DATA_TRANSPORT_LAYER__L2_RPC_ENDPOINT: https://rinkeby.boba.network
DATA_TRANSPORT_LAYER__L2_CHAIN_ID: 28
DATA_TRANSPORT_LAYER__SYNC_FROM_L2: 'true'
# Port
DATA_TRANSPORT_LAYER__SERVER_PORT: 7878
ports:
- ${DTL_PORT:-7878}:7878
l2geth-replica:
image: omgx/replica:production-v2
deploy:
replicas: 1
entrypoint: sh ./geth.sh
env_file:
- ./envs/geth_rv.env
environment:
ETH1_HTTP: https://rinkeby.infura.io/v3/INFURA_KEY
ROLLUP_STATE_DUMP_PATH: https://rinkeby.boba.network:8081/state-dump.latest.json
URL: https://rinkeby.boba.network:8081/addresses.json
# connecting to the DTL
ROLLUP_CLIENT_HTTP: http://dtl-replica:7878
ETH1_CTC_DEPLOYMENT_HEIGHT: 9065019
RETRIES: 60
ROLLUP_BACKEND: 'l2'
ROLLUP_VERIFIER_ENABLE: 'true'
# PORT
RPC_PORT: 8545
ports:
- ${REPLICA_HTTP_PORT:-8545}:8545
- ${REPLICA_WS_PORT:-8546}:8546
volumes:
- l2geth:/root/.ethereum
volumes:
l2geth: