forked from Lumen-Scribe/Lumenqraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
76 lines (71 loc) · 2.16 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
76 lines (71 loc) · 2.16 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
# Full local stack: Postgres + all three services, built from the Dockerfile.
# For dev with only Postgres, use docker-compose.yml instead.
#
# IMPORTANT: Set WEBHOOK_ENCRYPTION_KEY in your environment before starting:
# export WEBHOOK_ENCRYPTION_KEY=$(openssl rand -hex 32)
# docker compose -f docker-compose.full.yml up --build
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: lumenqraph
POSTGRES_PASSWORD: lumenqraph
POSTGRES_DB: lumenqraph
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lumenqraph"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
indexer:
build: .
command: ["lumenqraph-indexer"]
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://lumenqraph:lumenqraph@postgres:5432/lumenqraph
RPC_URL: ${RPC_URL:-https://soroban-testnet.stellar.org}
CONTRACT_IDS: ${CONTRACT_IDS:-}
POLL_INTERVAL_SECS: ${POLL_INTERVAL_SECS:-5}
RUST_LOG: ${RUST_LOG:-info}
api:
build: .
command: ["lumenqraph-api"]
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
ports:
- "8080:8080"
environment:
DATABASE_URL: postgres://lumenqraph:lumenqraph@postgres:5432/lumenqraph
API_BIND_ADDR: 0.0.0.0:8080
REQUIRE_API_KEY: ${REQUIRE_API_KEY:-false}
ANON_RATE_LIMIT_PER_MIN: ${ANON_RATE_LIMIT_PER_MIN:-60}
WEBHOOK_ENCRYPTION_KEY: ${WEBHOOK_ENCRYPTION_KEY}
RUST_LOG: ${RUST_LOG:-info}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
webhooks:
build: .
command: ["lumenqraph-webhooks"]
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://lumenqraph:lumenqraph@postgres:5432/lumenqraph
WEBHOOK_ENCRYPTION_KEY: ${WEBHOOK_ENCRYPTION_KEY}
RUST_LOG: ${RUST_LOG:-info}
volumes:
pgdata: