-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
240 lines (231 loc) · 6.22 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
version: "3.7"
services:
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/geth_nginx.conf:/etc/nginx/server_config/geth.conf:ro
ports:
- 9656:9656
- 8545:80
- 8546:81
- 443:443
healthcheck:
test: curl geth:80
interval: 5s
timeout: 3s
retries: 5
networks:
chain_net:
ipv4_address: 172.27.0.108
postgres:
image: postgres:12.2-alpine
restart: always
container_name: postgres
ports:
- "5432:5432"
volumes:
- ./docker/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql
- ./data/postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=omisegodev
- POSTGRES_PASSWORD=omisegodev
networks:
chain_net:
ipv4_address: 172.27.0.107
feefeed:
image: omisego/feefeed_mock:latest
volumes:
- ./docker/static_feefeed/:/www-data/
ports:
- "4000:80"
expose:
- "4000"
networks:
chain_net:
ipv4_address: 172.27.0.110
# feefeed:
# image: gcr.io/omisego-development/feefeed:latest
# command: "start"
# container_name: feefeed
# environment:
# - GITHUB_TOKEN=""
# - GITHUB_ORGANISATION=omgnetwork
# - GITHUB_REPO=fee-rules-public
# - GITHUB_BRANCH=master
# - RULES_FETCH_INTERVAL=300
# - GITHUB_FILENAME=fee_rules
# - DATABASE_URL=postgresql://feefeed:[email protected]:5432/feefeed
# - SECRET_KEY_BASE="Y8naENMR8b+vbPHILjwNtEfWFrnbGi2k+UYWm75VnKHfsavmyGLtTmmeJxAGK+zJ"
# - DATADOG_DISABLED=true
# - DATADOG_HOST="localhost"
# - ETHEREUM_NODE_URL=http://172.27.0.108:80
# ports:
# - "4000:4000"
# expose:
# - "4000"
# depends_on:
# - postgres
# restart: always
# networks:
# chain_net:
# ipv4_address: 172.27.0.110
childchain:
image: omisego/childchain-v2:latest
command: "full_local"
container_name: childchain
env_file:
- ./localchain_contract_addresses.env
- ./dynamic_env_vars.env
environment:
- ETHEREUM_NETWORK=LOCALCHAIN
- DATABASE_URL=postgresql://engine_repo:[email protected]:5432/engine_repo
- ETHEREUM_RPC_URL=http://172.27.0.108:80
- LOGGER_BACKEND=console
- ETHEREUM_EVENTS_CHECK_INTERVAL_MS=800
#- FEE_FEED_URL=http://172.27.0.110:4000/api/v1/fees
- FEE_FEED_URL=http://172.27.0.110/file.json #mock feefeed
- FEE_CHANGE_TOLERANCE_PERCENT=20
- FEE_ADAPTER=FEED
- STORED_FEE_UPDATE_INTERVAL_MINUTES=2
- FEE_CLAIMER_ADDRESS=0x24F3402Cd22F03ff81B56941fE048AD0F4EED5A1
- PRIVATE_KEY=7f30f140fd4724519e5017c0895f158d68bbbe4a81c0c10dbb25a0006e348807
depends_on:
- feefeed
- nginx
- geth
restart: always
networks:
chain_net:
ipv4_address: 172.27.0.103
geth:
image: ethereum/client-go:v1.10.1
container_name: geth
entrypoint: /bin/sh -c ". data/command"
environment:
RPC_PORT: 8545
ports:
- "8555:8545"
- "8556:8546"
expose:
- "8546"
- "8545"
volumes:
- ./data:/data
- ./docker/geth/command:/data/command
- ./docker/geth/geth-blank-password:/data/geth-blank-password
depends_on:
- nginx
networks:
chain_net:
ipv4_address: 172.27.0.101
watcher:
image: omisego/watcher-v2:latest
command: "full_local"
container_name: watcher
env_file:
- ./localchain_contract_addresses.env
environment:
- ETHEREUM_NETWORK=LOCALCHAIN
- ETHEREUM_RPC_URL=http://172.27.0.108:80
- CHILD_CHAIN_URL=http://172.27.0.108:9656/v1
- PORT=7434
- APP_ENV=local_docker_development
- DD_HOSTNAME=datadog
- DD_DISABLED=true
- DB_PATH=/data
- ETHEREUM_EVENTS_CHECK_INTERVAL_MS=800
- ETHEREUM_STALLED_SYNC_THRESHOLD_MS=20000
- ETHEREUM_BLOCK_TIME_SECONDS=1
- EXIT_PROCESSOR_SLA_MARGIN=5520
- EXIT_PROCESSOR_SLA_MARGIN_FORCED=TRUE
- LOGGER_BACKEND=console
- RELEASE_COOKIE=development
- NODE_HOST=127.0.0.1
restart: always
ports:
- "7434:7434"
expose:
- "7434"
volumes:
- ./data:/data
healthcheck:
test: curl watcher:7434
interval: 30s
timeout: 1s
retries: 5
start_period: 30s
depends_on:
- childchain
- nginx
networks:
chain_net:
ipv4_address: 172.27.0.104
watcher_info:
image: omisego/watcher_info-v2:latest
command: "full_local"
container_name: watcher_info
env_file:
- ./localchain_contract_addresses.env
environment:
- ETHEREUM_NETWORK=LOCALCHAIN
- ETHEREUM_RPC_URL=http://172.27.0.108:80
- CHILD_CHAIN_URL=http://172.27.0.108:9656/v1
- PORT=7534
- APP_ENV=local_docker_development
- DD_HOSTNAME=datadog
- DD_DISABLED=true
- DB_PATH=/data
- ETHEREUM_EVENTS_CHECK_INTERVAL_MS=800
- ETHEREUM_STALLED_SYNC_THRESHOLD_MS=20000
- ETHEREUM_BLOCK_TIME_SECONDS=1
- EXIT_PROCESSOR_SLA_MARGIN=5520
- EXIT_PROCESSOR_SLA_MARGIN_FORCED=TRUE
- LOGGER_BACKEND=console
- RELEASE_COOKIE=development
- NODE_HOST=127.0.0.1
- DATABASE_URL=postgresql://omisego_dev:[email protected]:5432/omisego_dev
restart: always
ports:
- "7534:7534"
expose:
- "7534"
volumes:
- ./data:/data
healthcheck:
test: curl watcher_info:7534
interval: 30s
timeout: 1s
retries: 5
start_period: 30s
depends_on:
- childchain
- postgres
- nginx
networks:
chain_net:
ipv4_address: 172.27.0.105
vault:
image: gcr.io/omisego-development/omgnetwork/vault:0.0.7
ports:
- "8200:8200"
volumes:
# - "./docker/immutability/ca/certs/:/etc/ssl/certs/"
- "./docker/vault/:/vault/entrypoint:rw"
- "./data/immutability/config:/vault/config:rw"
entrypoint: >
/bin/sh -c "
sleep 2
/vault/entrypoint/entrypoint.sh
"
networks:
chain_net:
ipv4_address: 172.27.0.111
networks:
chain_net:
name: "chain_net"
driver: bridge
ipam:
config:
- subnet: 172.27.0.0/24