-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathcompose-graphnode.yml
153 lines (133 loc) · 4.94 KB
/
compose-graphnode.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
networks:
monitor-net:
driver: bridge
volumes:
postgres_data: {}
services:
######################################################################################
##################### INDEX NODE CONTAINER 0 #######################
######################################################################################
index-node-0:
image: ${GRAPH_NODE_VERSION:-graphprotocol/graph-node:v0.35.1}
container_name: index-node-0
depends_on:
- postgres
volumes:
- ./graph-node-configs:/root/graph-node-configs/
environment:
GRAPH_NODE_CONFIG: /root/graph-node-configs/config.toml
ipfs: '${IPFS_ENDPOINT:-https://ipfs.network.thegraph.com/ipfs/}'
node_role: index-node
node_id: index_node_0
BLOCK_INGESTOR: index_node_0
RUST_LOG: ${RUST_LOGLEVEL:-INFO}
GRAPH_LOG: ${GRAPHNODE_LOGLEVEL:-DEBUG}
GRAPH_ETH_CALL_GAS: 50000000
GRAPH_GETH_ETH_CALL_ERRORS: "out of gas"
GRAPH_MAX_GAS_PER_HANDLER: 1000000000000000
GRAPH_KILL_IF_UNRESPONSIVE: "true"
GRAPH_ALLOW_NON_DETERMINISTIC_FULLTEXT_SEARCH: ${FULLTEXT_SEARCH:-true}
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: ${GRAPH_ALLOW_NON_DETERMINISTIC_IPFS:-true}
EXPERIMENTAL_SUBGRAPH_VERSION_SWITCHING_MODE: synced
ETHEREUM_POLLING_INTERVAL: ${RPC_POLLING_RATE:-500}
GRAPH_ETH_CALL_NO_GAS: "421613,42161"
restart: unless-stopped
expose:
- 8001
- 8000
- 8030
- 8040
networks:
- monitor-net
######################################################################################
##################### QUERY NODE CONTAINER 0 #######################
######################################################################################
query-node-0:
image: ${GRAPH_NODE_VERSION:-graphprotocol/graph-node:v0.35.1}
container_name: query-node-0
depends_on:
- postgres
volumes:
- ./graph-node-configs:/root/graph-node-configs/
environment:
GRAPH_NODE_CONFIG: /root/graph-node-configs/config.toml
ipfs: '${IPFS_ENDPOINT:-https://ipfs.network.thegraph.com/ipfs/}'
node_role: query-node
node_id: query_node_0
RUST_LOG: INFO
GRAPH_LOG: INFO
GRAPH_ETH_CALL_GAS: 50000000
GRAPH_GETH_ETH_CALL_ERRORS: "out of gas"
GRAPH_MAX_GAS_PER_HANDLER: 1000000000000000
EXPERIMENTAL_SUBGRAPH_VERSION_SWITCHING_MODE: synced
GRAPH_KILL_IF_UNRESPONSIVE: "true"
GRAPH_LOG_QUERY_TIMING: ${GRAPH_LOG_QUERY_TIMING:-gql}
GRAPH_ALLOW_NON_DETERMINISTIC_FULLTEXT_SEARCH: ${FULLTEXT_SEARCH:-true}
GRAPH_ALLOW_NON_DETERMINISTIC_IPFS: ${GRAPH_ALLOW_NON_DETERMINISTIC_IPFS:-true}
restart: unless-stopped
logging:
driver: "journald"
expose:
- 8001
- 8000
- 8020
- 8030
- 8040
networks:
- monitor-net
######################################################################################
##################### POSTGRES CONTAINER #######################
######################################################################################
postgres:
image: ${POSTGRES_VERSION:-postgres:16.4}
container_name: postgres
command: ["postgres", "-c", "shared_preload_libraries=pg_stat_statements"]
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-your_db_user}
POSTGRES_PASSWORD: ${DB_PASS:-your_db_password}
POSTGRES_DB: ${GRAPH_NODE_DB_NAME:-your_graphnode_db_name}
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- monitor-net
expose:
- 5432
#######################################################################################
###################### TRAEFIK PROXY CONTAINER #######################
#######################################################################################
#
#
# traefik:
# image: traefik:latest
# container_name: traefik
# restart: always
# expose:
# - "8082"
# ports:
# - "443:443"
# - "80:80"
# command:
# - "--api=true"
# - "--api.insecure=true"
# - "--api.dashboard=true"
# - "--log.level=DEBUG"
# - "--providers.docker=true"
# - "--providers.docker.exposedbydefault=false"
# - "--providers.file.filename=/dynamic_config.yml"
# - "--entrypoints.websecure.address=:443"
# - "--entryPoints.metrics.address=:8082"
# - "--metrics.prometheus.entryPoint=metrics"
# - "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# # TESTING
# - "--certificatesresolvers.myresolver.acme.email=$EMAIL"
# - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
# volumes:
# - "./traefik/letsencrypt:/letsencrypt"
# - "./traefik/config/dynamic_config.yml:/dynamic_config.yml"
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
# networks:
# - monitor-net
# labels:
# - "traefik.enable=true"