-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (111 loc) · 2.61 KB
/
docker-compose.yml
File metadata and controls
119 lines (111 loc) · 2.61 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.9"
services:
gateway:
build:
context: .
dockerfile: Dockerfile
container_name: llmstack-gateway
restart: unless-stopped
ports:
- "${GATEWAY_PORT:-8000}:8000"
environment:
- REDIS_URL=redis://redis:6379/0
- QDRANT_URL=http://qdrant:6333
- OLLAMA_URL=http://ollama:11434
- LLMSTACK_ENV=production
- LLMSTACK_LOG_LEVEL=${LOG_LEVEL:-info}
depends_on:
redis:
condition: service_healthy
ollama:
condition: service_started
networks:
- llmstack_net
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
ollama:
image: ollama/ollama:latest
container_name: llmstack-ollama
restart: unless-stopped
ports:
- "${OLLAMA_PORT:-11434}:11434"
volumes:
- ollama_data:/root/.ollama
networks:
- llmstack_net
redis:
image: redis:7-alpine
container_name: llmstack-redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
networks:
- llmstack_net
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
qdrant:
image: qdrant/qdrant:latest
container_name: llmstack-qdrant
restart: unless-stopped
profiles:
- rag
- full
ports:
- "${QDRANT_PORT:-6333}:6333"
- "${QDRANT_GRPC_PORT:-6334}:6334"
volumes:
- qdrant_data:/qdrant/storage
networks:
- llmstack_net
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:6333/healthz || exit 1"]
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
prometheus:
image: prom/prometheus:latest
container_name: llmstack-prometheus
restart: unless-stopped
profiles:
- monitoring
ports:
- "${PROMETHEUS_PORT:-9090}:9090"
volumes:
- prometheus_data:/prometheus
networks:
- llmstack_net
grafana:
image: grafana/grafana:latest
container_name: llmstack-grafana
restart: unless-stopped
profiles:
- monitoring
ports:
- "${GRAFANA_PORT:-3000}:3000"
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- prometheus
networks:
- llmstack_net
volumes:
ollama_data:
redis_data:
qdrant_data:
prometheus_data:
grafana_data:
networks:
llmstack_net:
driver: bridge