-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
88 lines (88 loc) · 1.96 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
87
88
version: "3.3"
services:
ipfs:
container_name: ipfs-service
build:
context: ./ipfs
dockerfile: Dockerfile
networks:
- graph
volumes:
- ipfsdatarec:/home
postgres:
container_name: db
image: postgres
networks:
- graph
command:
[
"postgres",
"-cmax_connections=1000",
"-cshared_preload_libraries=pg_stat_statements",
]
volumes:
- ./pg-init-scripts:/docker-entrypoint-initdb.d
- postgresqldata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_MULTIPLE_DATABASES=base_goerli_db,base_mainnet_db
base-goerli:
container_name: base_graph
image: graphprotocol/graph-node
depends_on:
- ipfs
- postgres
extra_hosts:
- host.docker.internal:host-gateway
environment:
postgres_host: postgres
postgres_user: postgres
postgres_pass: postgres
postgres_db: base_goerli_db
ipfs: ipfs:5001
ethereum: "goerli:https://goerli.base.org"
GRAPH_LOG: info
ETHEREUM_POLLING_INTERVAL: 1000
networks:
- graph
base:
container_name: base_graph_mainnet
image: graphprotocol/graph-node
depends_on:
- ipfs
- postgres
extra_hosts:
- host.docker.internal:host-gateway
environment:
postgres_host: postgres
postgres_user: postgres
postgres_pass: postgres
postgres_db: base_mainnet_db
ipfs: ipfs:5001
ethereum: "mainnet:https://base.llamarpc.com"
GRAPH_LOG: info
ETHEREUM_POLLING_INTERVAL: 1000
networks:
- graph
proxy:
container_name: graph_nodes_proxy
networks:
- graph
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- 65000:80
depends_on:
- base-goerli
- base
networks:
graph:
external: false
volumes:
postgresqldata:
external: false
ipfsdatarec:
external: false