-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (127 loc) · 3.37 KB
/
docker-compose.yml
File metadata and controls
133 lines (127 loc) · 3.37 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
services:
rpc-proxy:
build: ./rpc-proxy
environment:
RPC_GATEWAY_URL: ${RPC_GATEWAY_URL:-https://gateway.thebuidl.xyz/query}
RPC_API_KEY: ${RPC_API_KEY}
ALCHEMY_RPC_URL: ${ALCHEMY_RPC_URL:-}
ALCHEMY_RPC_URL_2: ${ALCHEMY_RPC_URL_2:-}
ALCHEMY_RPC_URL_3: ${ALCHEMY_RPC_URL_3:-}
INFURA_RPC_URL: ${INFURA_RPC_URL:-}
INFURA_RPC_URL_2: ${INFURA_RPC_URL_2:-}
INFURA_RPC_URL_3: ${INFURA_RPC_URL_3:-}
BACKFILL_THRESHOLD: ${BACKFILL_THRESHOLD:-1000}
PORT: 3000
graph-node:
image: graphprotocol/graph-node
# No public ports - nginx handles external access
expose:
- "8000"
- "8001"
- "8020"
- "8030"
- "8040"
depends_on:
- ipfs
- rpc-proxy
- postgres
environment:
postgres_host: ${POSTGRES_HOST}
postgres_port: ${POSTGRES_PORT:-5432}
postgres_user: ${POSTGRES_USER}
postgres_pass: ${POSTGRES_PASSWORD}
postgres_db: ${POSTGRES_DB}
ipfs: "ipfs:5001"
ethereum: "mainnet:http://rpc-proxy:3000"
GRAPH_LOG: info
# Block range for eth_getLogs requests optimized for Infura
GRAPH_ETHEREUM_TARGET_BLOCK_RANGE_SIZE: 10000
GRAPH_ETHEREUM_MAX_BLOCK_RANGE_SIZE: 10000
# Query limits (defaults: 1000/5000)
GRAPH_GRAPHQL_MAX_FIRST: 5000
GRAPH_GRAPHQL_MAX_SKIP: 10000
ipfs:
image: ipfs/kubo:v0.17.0
ports:
- "127.0.0.1:7005:5001"
volumes:
- ./data/ipfs:/data/ipfs
postgres:
image: postgres:15
shm_size: "2gb"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
volumes:
- ./data/postgres-c:/var/lib/postgresql/data
ports:
- "127.0.0.1:7006:5432"
counts-api:
build: ./counts-api
expose:
- "3001"
depends_on:
- postgres
environment:
POSTGRES_HOST: ${POSTGRES_HOST}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
SUBGRAPH_NAME: eigenwatch-ethereum
CACHE_TTL_MS: "60000"
PORT: "3001"
restart: unless-stopped
nginx:
build: ./nginx
ports:
- "7000:80"
depends_on:
- graph-node
- prometheus
- rpc-proxy
- loki
- counts-api
environment:
GRAPHQL_API_KEY: ${GRAPHQL_API_KEY}
restart: unless-stopped
prometheus:
build: ./monitoring/prometheus
# No public ports - access via nginx at /prometheus/ with API key
expose:
- "9090"
volumes:
- prometheus_data:/prometheus
depends_on:
- rpc-proxy
- graph-node
- cadvisor
cadvisor:
image: gcr.io/cadvisor/cadvisor:v0.47.0
privileged: true
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
expose:
- "8080"
restart: unless-stopped
loki:
build: ./monitoring/loki
# No public ports - access via nginx at /loki/ with API key
expose:
- "3100"
restart: unless-stopped
promtail:
build: ./monitoring/promtail
volumes:
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- loki
restart: unless-stopped
volumes:
prometheus_data: