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

Commit 58f35ab

Browse files
authored
Merge pull request #23 from schmidsi/schmidsi/add-docker-compose
Add docker-compose
2 parents 181b345 + f1b2078 commit 58f35ab

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

docker-compose.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
GRAPH_LOG: info
23+
ipfs:
24+
image: ipfs/go-ipfs:v0.4.23
25+
ports:
26+
- '5001:5001'
27+
volumes:
28+
- ./data/ipfs:/data/ipfs
29+
postgres:
30+
image: postgres
31+
ports:
32+
- '5432:5432'
33+
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
34+
environment:
35+
POSTGRES_USER: graph-node
36+
POSTGRES_PASSWORD: let-me-in
37+
POSTGRES_DB: graph-node
38+
volumes:
39+
- ./data/postgres:/var/lib/postgresql/data

0 commit comments

Comments
 (0)