Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 0cb0efb

Browse files
committed
Add docker-compose
1 parent 478827f commit 0cb0efb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docker-compose.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: '3'
2+
services:
3+
graph-node:
4+
image: graphprotocol/graph-node:v0.22.0
5+
ports:
6+
- '8000:8000'
7+
- '8001:8001'
8+
- '8020:8020'
9+
- '8030:8030'
10+
- '8040:8040'
11+
depends_on:
12+
- ipfs
13+
- postgres
14+
environment:
15+
postgres_host: postgres
16+
postgres_user: graph-node
17+
postgres_pass: let-me-in
18+
postgres_db: graph-node
19+
ipfs: 'ipfs:5001'
20+
# Change next line if you want to connect to a different JSON-RPC endpoint
21+
ethereum: 'mainnet:http://host.docker.internal:8545'
22+
RUST_LOG: info # up until v0.22.0
23+
GRAPH_LOG: info
24+
ipfs:
25+
image: ipfs/go-ipfs:v0.4.23
26+
ports:
27+
- '5001:5001'
28+
volumes:
29+
- ./data/ipfs:/data/ipfs
30+
postgres:
31+
image: postgres
32+
ports:
33+
- '5432:5432'
34+
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
35+
environment:
36+
POSTGRES_USER: graph-node
37+
POSTGRES_PASSWORD: let-me-in
38+
POSTGRES_DB: graph-node
39+
volumes:
40+
- ./data/postgres:/var/lib/postgresql/data

0 commit comments

Comments
 (0)