forked from 0xProject/0x-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.78 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
version: '3'
services:
ganache:
image: '0xorg/ganache-cli:6.4.1'
ports:
- '8545:8545'
environment:
VERSION: 6.6.0
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=api
- POSTGRES_DB=api
# persist the postgres data to disk so we don't lose it
# on rebuilds.
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
events-pipeline:
depends_on:
- postgres
image: 0xorg/event-pipeline@sha256:058e730018a8bdc31b1fdd68935eeb27bc728a0db579b41436c138cf73e830e1
restart: always
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL}'
CHAIN_ID: '${CHAIN_ID}'
POSTGRES_URI: 'postgres://api:api@postgres/api'
mesh:
image: 0xorg/mesh:10.2.0
depends_on:
- ganache
restart: on-failure
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL}'
ETHEREUM_CHAIN_ID: '${CHAIN_ID}'
USE_BOOTSTRAP_LIST: 'false'
VERBOSITY: 4
PRIVATE_KEY_PATH: ''
ENABLE_GRAPHQL_SERVER: 'true'
ENABLE_GRAPHQL_PLAYGROUND: 'true' # TODO(kimpers): remove this?
BLOCK_POLLING_INTERVAL: '2s'
ETHEREUM_RPC_MAX_REQUESTS_PER_24_HR_UTC: '150000'
volumes:
- ./0x_mesh_test:/usr/mesh/0x_mesh
ports:
- '60557:60557'
- '60558:60558'
- '60559:60559'
command: |
sh -c "waitForGanache () { until printf 'POST /\r\nContent-Length: 26\r\n\r\n{\"method\":\"net_listening\"}' | nc localhost 8545 | grep true; do continue; done }; waitForGanache && ./mesh"