-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.runtime.yml
More file actions
57 lines (57 loc) · 1.82 KB
/
Copy pathcompose.runtime.yml
File metadata and controls
57 lines (57 loc) · 1.82 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
name: backintel-runtime-proof
services:
postgres:
image: pgvector/pgvector:pg18
environment:
POSTGRES_USER: aegra
POSTGRES_PASSWORD: ${BACKINTEL_RUNTIME_DB_PASSWORD:?Set local DB password in .env}
POSTGRES_DB: aegra
volumes:
- runtime_db:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aegra -d aegra"]
interval: 3s
retries: 20
redis:
image: redis:7.2.5-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- runtime_broker:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 3s
retries: 20
runtime:
build:
context: .
dockerfile: Dockerfile.runtime
args:
BACKINTEL_CANDIDATE_SHA: ${BACKINTEL_CANDIDATE_SHA:?Set exact committed candidate SHA}
environment:
DATABASE_URL: postgresql://aegra:${BACKINTEL_RUNTIME_DB_PASSWORD:?Set local DB password in .env}@postgres:5432/aegra
BACKINTEL_APP_DATABASE_URL: postgresql://aegra:${BACKINTEL_RUNTIME_DB_PASSWORD:?Set local DB password in .env}@postgres:5432/backintel_app
BACKINTEL_REPORT_DIR: /reports
REDIS_URL: redis://redis:6379/0
REDIS_BROKER_ENABLED: "true"
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
WORKER_COUNT: "2"
N_JOBS_PER_WORKER: "1"
AUTH_TYPE: noop
OTEL_TARGETS: ""
OTEL_CONSOLE_EXPORT: "false"
ports:
- "127.0.0.1:2026:2026"
volumes:
- ${BACKINTEL_REPORT_DIR:?Set an external report directory}:/reports
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:2026/health', timeout=2)"]
interval: 5s
retries: 15
volumes:
runtime_db:
runtime_broker: