|
| 1 | +services: |
| 2 | + graphnode-postgres: |
| 3 | + image: postgres:16.4 |
| 4 | + restart: unless-stopped |
| 5 | + command: |
| 6 | + - "postgres" |
| 7 | + - "-cshared_preload_libraries=pg_stat_statements" |
| 8 | + expose: |
| 9 | + - 5432 |
| 10 | + environment: |
| 11 | + POSTGRES_USER: graphnode |
| 12 | + POSTGRES_PASSWORD: password |
| 13 | + POSTGRES_DB: graphnode-db |
| 14 | + POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C" |
| 15 | + healthcheck: |
| 16 | + test: pg_isready -U graphnode -d graphnode-db |
| 17 | + interval: 10s |
| 18 | + timeout: 5s |
| 19 | + retries: 3 |
| 20 | + start_period: 30s |
| 21 | + |
| 22 | + ipfs: |
| 23 | + restart: unless-stopped |
| 24 | + image: ipfs/go-ipfs:v0.22.0 |
| 25 | + expose: |
| 26 | + - 8080 |
| 27 | + - 5001 |
| 28 | + ports: |
| 29 | + - 8080:8080 |
| 30 | + - 5001:5001 |
| 31 | + |
| 32 | + graphnode: |
| 33 | + image: graphprotocol/graph-node:v0.35.1 |
| 34 | + restart: unless-stopped |
| 35 | + expose: |
| 36 | + - 8000 |
| 37 | + - 8020 |
| 38 | + ports: |
| 39 | + # GraphQL HTTP |
| 40 | + - 8000:8000 |
| 41 | + # GraphQL WS |
| 42 | + # - 8001:8001 |
| 43 | + # admin RPC |
| 44 | + - 8020:8020 |
| 45 | + # metrics |
| 46 | + # - 8040:8040 |
| 47 | + environment: |
| 48 | + postgres_host: graphnode-postgres |
| 49 | + postgres_port: 5432 |
| 50 | + postgres_user: graphnode |
| 51 | + postgres_pass: password |
| 52 | + postgres_db: graphnode-db |
| 53 | + ipfs: ipfs:5001 |
| 54 | + ethereum: ${NETWORK_NAME}:${BELLECOUR_NODE_URL} |
| 55 | + GRAPH_ETHEREUM_GENESIS_BLOCK_NUMBER: $START_BLOCK |
| 56 | + depends_on: |
| 57 | + graphnode-postgres: |
| 58 | + condition: service_healthy |
| 59 | + ipfs: |
| 60 | + condition: service_started |
| 61 | + healthcheck: |
| 62 | + test: netcat -w 1 0.0.0.0 8020 |
| 63 | + interval: 10s |
| 64 | + timeout: 5s |
| 65 | + retries: 5 |
| 66 | + start_period: 30s |
| 67 | + |
| 68 | + poco-subgraph-deployer: |
| 69 | + build: |
| 70 | + context: .. |
| 71 | + dockerfile: docker/Dockerfile |
| 72 | + environment: |
| 73 | + GRAPHNODE_URL: http://graphnode:8020 |
| 74 | + IPFS_URL: http://ipfs:5001 |
| 75 | + NETWORK_NAME: $NETWORK_NAME |
| 76 | + START_BLOCK: $START_BLOCK |
| 77 | + depends_on: |
| 78 | + graphnode: |
| 79 | + condition: service_healthy |
0 commit comments