-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.34 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: indexer
POSTGRES_PASSWORD: indexer
POSTGRES_DB: indexer
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U indexer"]
interval: 5s
timeout: 5s
retries: 5
prometheus:
image: prom/prometheus:v3.11.1
ports:
- "9091:9090"
volumes:
- ./infra/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- promdata:/prometheus
grafana:
image: grafana/grafana:11.6.14
ports:
- "3001:3000"
volumes:
- grafanadata:/var/lib/grafana
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
app:
image: stablebridge/prism:latest
profiles:
- app
ports:
- "${API_PORT:-3000}:3000"
- "9090:9090"
environment:
STREAM_MODE: ${STREAM_MODE:-websocket}
RPC_WS_ENDPOINT: ${RPC_WS_ENDPOINT:-wss://api.mainnet-beta.solana.com}
GRPC_ENDPOINT: ${GRPC_ENDPOINT:-}
X_TOKEN: ${X_TOKEN:-}
DATABASE_URL: postgresql://indexer:indexer@postgres:5432/indexer
API_PORT: "3000"
CONSOLE_LOG: ${CONSOLE_LOG:-true}
BENCH_LOG: ${BENCH_LOG:-benchmark.log}
depends_on:
postgres:
condition: service_healthy
volumes:
pgdata:
promdata:
grafanadata: