-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
66 lines (64 loc) · 2.07 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
version: "3"
services:
# Query
# adapted from https://github.com/graphprotocol/mission-control-indexer/blob/8cc08c4c72ed7a7fcab2bfeace172626c9d08ee3/k8s/base/query-node/deployment.yaml
graph-node-query:
image: graphprotocol/graph-node:latest
ports:
- "8000:8000" # http
- "8030:8030" # index-node
- "8001:8001" # ws
- "8040:8040" # metrics
depends_on:
- postgres
environment:
postgres_host: postgres:5432
postgres_user: graph-node
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: "https://testnet.thegraph.com/ipfs/"
# CHANGE ME
ethereum: "mainnet:https://mainnet.infura.io/v3/<your-key>"
node_role: "query-node"
node_id: "query-node"
GRAPH_KILL_IF_UNRESPONSIVE: "true"
EXPERIMENTAL_SUBGRAPH_VERSION_SWITCHING_MODE: "synced" # ?
RUST_LOG: info
restart: always
# Index
# adapted from https://github.com/graphprotocol/mission-control-indexer/blob/8cc08c4c72ed7a7fcab2bfeace172626c9d08ee3/k8s/base/index-node/stateful_set.yaml
graph-node-indexer:
image: graphprotocol/graph-node:latest
ports:
- "8100:8000" # http
- "8120:8020" # json-rpc
- "8140:8040" # metrics
depends_on:
- postgres
environment:
postgres_host: postgres:5432
postgres_user: graph-node
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: "https://testnet.thegraph.com/ipfs/"
# CHANGE ME
ethereum: "mainnet:https://mainnet.infura.io/v3/<your-key>"
node_role: "index-node"
node_id: "index-node"
BLOCK_INGESTOR: "index-node" # Only need to specify one block ingestor
GRAPH_KILL_IF_UNRESPONSIVE: "true"
RUST_LOG: info
restart: always
postgres:
image: postgres
ports:
- "5432:5432"
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: graph-node
# CHANGE ME
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: graph-node
volumes:
- ~/subgraph-data/postgres:/var/lib/postgresql/data
restart: always