forked from 0xProject/0x-event-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (80 loc) · 2.67 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'
services:
postgres:
image: postgres:9.6
environment:
- POSTGRES_USER=api
- POSTGRES_PASSWORD=api
- POSTGRES_DB=events
- POSTGRES_PORT=5432
# persist the postgres data to disk so we don't lose it
# on rebuilds.
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
event-pipeline:
depends_on:
- postgres
build:
context: .
dockerfile: event-pipeline/Dockerfile
restart: always
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL}'
CHAIN_ID: '${CHAIN_ID}'
POSTGRES_URI: 'postgres://api:api@postgres/events'
event-pipeline-bsc:
depends_on:
- postgres
build:
context: .
dockerfile: event-pipeline-evm/Dockerfile
restart: always
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL_BSC}'
CHAIN_ID: '56'
POSTGRES_URI: 'postgres://api:api@postgres/events'
SCHEMA: 'events_bsc'
EP_DEPLOYMENT_BLOCK: 5375047
MAX_BLOCKS_TO_SEARCH: 2000
MAX_BLOCKS_TO_PULL: 5000
MINUTES_BETWEEN_RUNS: 1
FEAT_VIP_SWAP_EVENT: "true"
VIP_SWAP_SOURCES: "PancakeSwap,BakerySwap,SushiSwap"
FEAT_ONEINCH_SWAPPED_EVENT: "true"
ONEINCH_ROUTER_V3_DEPLOYMENT_BLOCK: 5300000
event-pipeline-polygon:
depends_on:
- postgres
build:
context: .
dockerfile: event-pipeline-evm/Dockerfile
restart: always
environment:
ETHEREUM_RPC_URL: '${ETHEREUM_RPC_URL_POLYGON}'
CHAIN_ID: '137'
POSTGRES_URI: 'postgres://api:api@postgres/events'
SCHEMA: 'events_polygon'
EP_DEPLOYMENT_BLOCK: 14391480
MAX_BLOCKS_TO_SEARCH: 2000
MAX_BLOCKS_TO_PULL: 2000
MINUTES_BETWEEN_RUNS: 1
FEAT_ONEINCH_SWAPPED_EVENT: "true"
ONEINCH_ROUTER_V3_DEPLOYMENT_BLOCK: 14500000
FEAT_SLINGSHOT_TRADE_EVENT: "true"
SLINGSHOT_DEPLOYMENT_BLOCK: 14500000
FEAT_PARASWAP_SWAPPED_EVENT: "true"
PARASWAP_DEPLOYMENT_BLOCK: 14500000
PARASWAP_CONTRACT_ADDRESS: "0x90249ed4d69D70E709fFCd8beE2c5A566f65dADE"
staking-api:
depends_on:
- event-pipeline
build:
context: .
dockerfile: staking-api/Dockerfile
restart: always
environment:
POSTGRES_URI: 'postgres://api:api@postgres/events'
ports:
- '4000:4000'