-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.template.yml
52 lines (52 loc) · 1.49 KB
/
docker-compose.template.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
services:
graph-node:
image: graphprotocol/graph-node:v0.35.0
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
expose:
- 8000
- 8001
- 8020
- 8030
depends_on:
- ipfs
- postgres
environment:
postgres_host: postgres
postgres_user: postgres
postgres_pass: ${postgres_pass}
postgres_db: postgres
ipfs: 'ipfs:5001'
# Change next line if you want to connect to a different JSON-RPC endpoint
ethereum: '{{node.network}}:{{& node.address}}'
GRAPH_LOG: '{{node.log_level}}'
GRAPH_GRAPHQL_QUERY_TIMEOUT: '{{node.graph_graphql_query_timeout}}'
GRAPH_SQL_STATEMENT_TIMEOUT: '{{node.graph_sql_statement_timeout}}'
GRAPH_GRAPHQL_MAX_DEPTH: '{{node.graph_graphql_max_depth}}'
GRAPH_GRAPHQL_MAX_COMPLEXITY: '{{node.graph_graphql_max_complexity}}'
restart: '{{node.restart}}'
ipfs:
image: ipfs/go-ipfs:latest
ports:
- '5001:5001'
expose:
- 5001
volumes:
- ./data/ipfs:/data/ipfs
postgres:
image: postgres:14
ports:
- '5432:5432'
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: postgres
PGDATA: "/var/lib/postgresql/data"
POSTGRES_INITDB_ARGS: '--encoding=UTF-8 --lc-collate=C --lc-ctype=C'
volumes:
- ./data/postgres:/var/lib/postgresql/data