-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 887 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 887 Bytes
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
version: '3.8'
services:
# The AI SAFE2 Gateway
gateway:
build: .
ports:
- "8000:8000"
environment:
- REDIS_URL=redis://redis:6379
- LOG_LEVEL=info
- PROMETHEUS_MULTIPROC_DIR=/tmp
depends_on:
- redis
volumes:
- ./config:/app/config # Maps local config to container
restart: unless-stopped
# Rate Limiting & Cache
redis:
image: redis:7-alpine
ports:
- "6379:6379"
restart: unless-stopped
# Metrics & Observability (The "1%" Feature)
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
# Visualization Dashboard
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
depends_on:
- prometheus