-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose-bnb-side.yml
136 lines (125 loc) · 3.89 KB
/
docker-compose-bnb-side.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: "3"
# Account #0
x-deployer_pk: &deployer_pk
DEPLOYER_PRIVATE_KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
# Account #6 - bobalink test
x-bobalink_pk: &bobalink_pk
BOBALINK_REPORTER_KEY: '0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e'
# Account #19
x-gas-price-oracle_pk: &gas-price-oracle_pk
GAS_PRICE_ORACLE_OWNER_PRIVATE_KEY: '0xdf57089febbacf7ba0bc227dafbffa9fc08a93fdc68e1e42411a14efcf23656e'
services:
bobalink:
depends_on:
- l2geth
image: bobanetwork/bobalink:latest
build:
context: ..
dockerfile: ./ops/docker/Dockerfile.packages
target: bobalink
environment:
L1_NODE_WEB3_URL: http://l2geth:8545
L2_NODE_WEB3_URL: http://l2geth:8545
ADDRESS_MANAGER_ADDRESS: "0x5FbDB2315678afecb367f032d93F642f64180aa3"
<< : *bobalink_pk
URL: http://dtl:8081/addresses.json
BOBA_URL: http://dtl:8081/boba-addr.json
POLLING_INTERVAL: 1000
# deploys account abstraction contracts and serves contract addresses
aa_deployer:
depends_on:
- l1_chain
- dtl
- l2geth
- boba_deployer
image: bobanetwork/aa_deployer:latest
build:
context: ..
dockerfile: ./ops/docker/Dockerfile.packages
target: aa_deployer
environment:
L1_NODE_WEB3_URL: http://l1_chain:8545
L2_NODE_WEB3_URL: http://l2geth:8545
URL: http://dtl:8081/addresses.json
BOBA_URL: http://dtl:8081/boba-addr.json
# DO NOT use in production
<< : *deployer_pk
RETRIES: 500
DTL_REGISTRY_URL: http://dtl:8081/aa-addr.json
# skip compilation when run in docker-compose, since the contracts
# were already compiled in the builder step
NO_COMPILE: 1
proxyd:
image: bobanetwork/proxyd:latest
build:
context: ../go/
dockerfile: ./proxyd/Dockerfile
deploy:
replicas: 0
bundler:
depends_on:
- l1_chain
- dtl
- l2geth
- boba_deployer
- aa_deployer
image: bobanetwork/bundler:latest
build:
context: ..
dockerfile: ./ops/docker/Dockerfile.packages
target: bundler
deploy:
replicas: 1
ports: [ '3000:3000' ]
restart: on-failure
environment:
MIN_BALANCE: 0
URL: http://dtl:8081/addresses.json
AA_DEPLOYER: http://dtl:8081/aa-addr.json
MNEMONIC_OR_PK: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
L1_NODE_WEB3_URL: http://l1_chain:8545
L2_NODE_WEB3_URL: http://l2geth:8545
BENEFICIARY: "0xcd3b766ccdd6ae721141f452c550ca635964ce71"
MAX_BUNDLE_GAS: 5000000
#should be set to false in prod!
UNSAFE: 'true'
mem_limit: 300M
logging:
driver: "json-file"
options:
max-size: 10m
max-file: "10"
teleportation:
depends_on:
- l2geth
- teleportation_db
image: bobanetwork/teleportation:latest
build:
context: ..
dockerfile: ./ops/docker/Dockerfile.packages
target: teleportation
deploy:
replicas: 0
environment:
# KMS setup (incl. defaults)
TELEPORTATION_AWS_KMS_ACCESS_KEY: "${TELEPORTATION_AWS_KMS_ACCESS_KEY:-1}"
TELEPORTATION_AWS_KMS_SECRET_KEY: "${TELEPORTATION_AWS_KMS_SECRET_KEY:-2}"
TELEPORTATION_AWS_KMS_KEY_ID: "${TELEPORTATION_AWS_KMS_KEY_ID:-3}"
TELEPORTATION_AWS_KMS_ENDPOINT: "${TELEPORTATION_AWS_KMS_ENDPOINT:-http://kms:8888/}"
TELEPORTATION_AWS_KMS_REGION: "${TELEPORTATION_AWS_KMS_REGION:-us-east-1}"
# TBD best amount to airdrop
TELEPORTATION_AIRDROP_GAS_AMOUNT_WEI: 500000000000000
TELEPORTATION_AIRDROP_COOLDOWN_SECONDS: 86400 # 86400s = 1 day
TELEPORTATION_AIRDROP_ENABLED: false
teleportation_db:
image: postgres
deploy:
replicas: 1
environment:
POSTGRES_PASSWORD: abcdef
POSTGRES_DB: postgres
ports:
- "5432:5432"
networks:
bnb-network:
name: bnb-network