-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
86 lines (86 loc) · 2.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.8"
services:
geth:
image: ethereum/client-go:v1.13.12
command:
- --dev
- --datadir=/devchain
- --password=/password
- --http
- --http.api=eth,net,web3
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
healthcheck:
test:
["CMD-SHELL", "geth attach --datadir /devchain --exec eth.blockNumber"]
interval: 10s
timeout: 5s
retries: 5
start_period: 3s
ports:
- 8545:8545
volumes:
- ./data/geth:/devchain
- ./geth-dev-pass:/password:ro
ipfs:
image: ipfs/go-ipfs:v0.26.0
ports:
- "5001:5001"
volumes:
- ./data/ipfs:/data/ipfs
healthcheck:
test:
[
"CMD-SHELL",
"ipfs dag stat /ipfs/QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn || exit 1",
]
interval: 5s
timeout: 5s
retries: 3
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
command:
[
"postgres",
"-cshared_preload_libraries=pg_stat_statements",
"-cmax_connections=200",
]
healthcheck:
test: ["CMD", "sh", "-c", "pg_isready -U $$POSTGRES_USER -h $$(hostname -i)"]
interval: 10s
timeout: 10s
retries: 5
environment:
POSTGRES_USER: graph-node
POSTGRES_PASSWORD: pa$$w0rd
POSTGRES_DB: graph-node
PGDATA: "/var/lib/postgresql/data"
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
volumes:
- ./data/postgres:/var/lib/postgresql/data
graph-node:
image: graphprotocol/graph-node:v0.34.1
ports:
- "8000:8000"
- "8001:8001"
- "8020:8020"
- "8030:8030"
- "8040:8040"
depends_on:
geth:
condition: service_healthy
postgres:
condition: service_healthy
ipfs:
condition: service_healthy
environment:
postgres_host: postgres
postgres_user: graph-node
postgres_pass: pa$$w0rd
postgres_db: graph-node
ipfs: "ipfs:5001"
ethereum: "devnet:http://geth:8545"
GRAPH_LOG: info