|
1 | | -version: "3" |
2 | | - |
3 | | -networks: |
4 | | - thegraph: |
5 | | - blockchain: |
6 | | - |
7 | 1 | services: |
8 | 2 | chain: |
9 | | - image: "iexechub/poco-chaintest:5.3.0-token-parity" |
| 3 | + image: docker-regis.iex.ec/poco-chain:1.0.0-poco-v5.5.0-voucher-v1.0.0-nethermind |
10 | 4 | restart: unless-stopped |
11 | | - networks: |
12 | | - - blockchain |
13 | | - expose: |
14 | | - - 8545 |
15 | | - - 8546 |
16 | 5 | ports: |
17 | 6 | - 8545:8545 |
18 | | - - 8546:8546 |
| 7 | + # - 8546:8546 # port (not required for integration tests) fails to open on CI |
19 | 8 |
|
20 | 9 | ipfs: |
21 | | - image: ipfs/go-ipfs:v0.10.0 |
22 | 10 | restart: unless-stopped |
23 | | - networks: |
24 | | - - thegraph |
| 11 | + image: ipfs/go-ipfs:v0.22.0 |
25 | 12 | ports: |
| 13 | + - 8080:8080 |
26 | 14 | - 5001:5001 |
27 | | - volumes: |
28 | | - - ${DATA}/ipfs:/data/ipfs |
29 | 15 |
|
30 | | - postgres: |
31 | | - image: postgres:12 |
| 16 | + graphnode-postgres: |
| 17 | + image: postgres:16.4 |
32 | 18 | restart: unless-stopped |
33 | | - networks: |
34 | | - - thegraph |
35 | 19 | command: |
36 | 20 | - "postgres" |
37 | 21 | - "-cshared_preload_libraries=pg_stat_statements" |
38 | | - ports: |
39 | | - - 5432:5432 |
| 22 | + expose: |
| 23 | + - 5432 |
40 | 24 | environment: |
41 | | - POSTGRES_USER: "${DB_USER}" |
42 | | - POSTGRES_PASSWORD: "${DB_PASSWORD}" |
43 | | - POSTGRES_DB: "${DB_NAME}" |
| 25 | + POSTGRES_USER: ${DB_USER} |
| 26 | + POSTGRES_PASSWORD: ${DB_PASSWORD} |
| 27 | + POSTGRES_DB: ${DB_NAME} |
| 28 | + POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C" |
44 | 29 |
|
45 | 30 | graphnode: |
46 | | - image: graphprotocol/graph-node:v0.27.0 |
| 31 | + image: graphprotocol/graph-node:v0.35.1 |
47 | 32 | restart: unless-stopped |
48 | | - networks: |
49 | | - - blockchain |
50 | | - - thegraph |
51 | | - depends_on: |
52 | | - - ipfs |
53 | | - - postgres |
54 | | - - chain |
55 | 33 | ports: |
56 | | - - 8000:8000 # http |
57 | | - - 8001:8001 # ws |
58 | | - - 8020:8020 # deploy |
59 | | - - 8030:8030 # monitoring |
60 | | - - 8040:8040 # prometeus |
| 34 | + - 8000:8000 # GraphQL HTTP |
| 35 | + # - 8001:8001 # GraphQL WS |
| 36 | + - 8020:8020 # admin RPC |
| 37 | + # - 8040:8040 # metrics |
| 38 | + environment: |
| 39 | + postgres_host: graphnode-postgres |
| 40 | + postgres_port: 5432 |
| 41 | + postgres_user: ${DB_USER} |
| 42 | + postgres_pass: ${DB_PASSWORD} |
| 43 | + postgres_db: ${DB_NAME} |
| 44 | + ipfs: ipfs:5001 |
| 45 | + ethereum: ${NETWORK_NAME}:http://chain:8545 |
| 46 | + healthcheck: |
| 47 | + test: netcat -w 1 0.0.0.0 8020 |
| 48 | + interval: 10s |
| 49 | + timeout: 5s |
| 50 | + retries: 10 |
| 51 | + start_period: 30s |
| 52 | + |
| 53 | + poco-subgraph-deployer: |
| 54 | + build: |
| 55 | + context: ../.. |
| 56 | + dockerfile: docker/Dockerfile |
61 | 57 | environment: |
62 | | - RUST_BACKTRACE: 1 |
63 | | - postgres_host: postgres |
64 | | - postgres_user: "${DB_USER}" |
65 | | - postgres_pass: "${DB_PASSWORD}" |
66 | | - postgres_db: "${DB_NAME}" |
67 | | - ipfs: "ipfs:5001" |
68 | | - ethereum: "test:http://chain:8545" |
69 | | - GRAPH_NODE_ID: "graphnode_id" |
| 58 | + GRAPHNODE_URL: http://graphnode:8020 |
| 59 | + IPFS_URL: http://ipfs:5001 |
| 60 | + NETWORK_NAME: ${NETWORK_NAME} |
| 61 | + depends_on: |
| 62 | + graphnode: |
| 63 | + condition: service_healthy |
0 commit comments