-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (43 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
47 lines (43 loc) · 1.18 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
version: '3.8'
services:
# Threat detection backend
backend:
build: ./backend
ports:
- "5000:5000"
environment:
- NODE_ENV=production
- PORT=5000
volumes:
- ./audit-logs:/app/audit-logs
restart: unless-stopped
# Security proxy
proxy:
build: ./proxy
ports:
- "8000:8000"
environment:
# KEY_MODE controls who holds upstream API keys:
# server (default) — set OPENAI_API_KEY here; client Authorization header is ignored.
# passthrough — client supplies its own "Authorization: Bearer <key>" header; no key stored server-side.
# auto — use server key when set, fall back to client header.
- KEY_MODE=${KEY_MODE:-server}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- BACKEND_URL=http://backend:5000
- PORT=8000
depends_on:
- backend
restart: unless-stopped
# Monitoring dashboard
dashboard:
build: ./dashboard
ports:
- "3000:80"
environment:
- BACKEND_URL=http://backend:5000
depends_on:
- backend
restart: unless-stopped
volumes:
audit-logs: