Skip to content

Instantly share code, notes, and snippets.

@adamazad
Created August 23, 2022 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamazad/e0a145ee43e4e5cee87745cee9197a25 to your computer and use it in GitHub Desktop.
Save adamazad/e0a145ee43e4e5cee87745cee9197a25 to your computer and use it in GitHub Desktop.
Run Local Graph Node
version: '3'
services:
graph-node:
image: graphprotocol/graph-node:v0.27.0
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
depends_on:
- ipfs
- postgres
environment:
postgres_host: postgres
postgres_user: graph-node
postgres_pass: let-me-in
postgres_db: graph-node
ipfs: 'ipfs:5001'
ethereum: 'xdai:https://rpc.gnosischain.com'
RUST_LOG: info
GRAPH_LOG: debug
RUST_LOG_STYLE: always
ipfs:
image: ipfs/go-ipfs:v0.4.23
ports:
- '5001:5001'
postgres:
image: postgres
ports:
- '5432:5432'
command: ['postgres', '-cshared_preload_libraries=pg_stat_statements']
environment:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: graph-node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment