-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.28 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
version: "3.9"
services:
# ── Postgres ──────────────────────────────────────────────
db:
image: postgres:16-alpine
container_name: wraith_db
restart: unless-stopped
environment:
POSTGRES_USER: wraith
POSTGRES_PASSWORD: wraith
POSTGRES_DB: wraith
ports:
- "5432:5432"
volumes:
- wraith_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wraith"]
interval: 5s
timeout: 5s
retries: 10
# ── Wraith Indexer + API ───────────────────────────────────
wraith:
build: .
container_name: wraith_indexer
restart: unless-stopped
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgresql://wraith:wraith@db:5432/wraith
STELLAR_RPC_URL: ${STELLAR_RPC_URL:-https://soroban-testnet.stellar.org}
START_LEDGER: ${START_LEDGER:-}
POLL_INTERVAL_MS: ${POLL_INTERVAL_MS:-6000}
CONTRACT_IDS: ${CONTRACT_IDS:-}
EVENTS_BATCH_SIZE: ${EVENTS_BATCH_SIZE:-10000}
PORT: ${PORT:-3000}
ports:
- "${PORT:-3000}:3000"
volumes:
wraith_pgdata: