-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (63 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
66 lines (63 loc) · 1.42 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
# Gleann Docker Compose — example with Ollama sidecar
#
# Usage:
# docker compose up -d
#
# This starts gleann in server mode with a local Ollama instance
# for embedding computation.
services:
gleann:
build:
context: .
dockerfile: Dockerfile
args:
VERSION: ${VERSION:-dev}
ports:
- "8080:8080"
volumes:
- gleann-data:/data/indexes
environment:
GLEANN_INDEX_DIR: /data/indexes
OLLAMA_HOST: http://ollama:11434
EMBEDDING_MODEL: bge-m3:latest
EMBEDDING_PROVIDER: ollama
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 512M
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:11434/api/tags || exit 1"]
interval: 30s
timeout: 10s
start_period: 30s
retries: 3
restart: unless-stopped
deploy:
resources:
limits:
memory: 8G
reservations:
memory: 2G
# Uncomment the following for GPU support:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
volumes:
gleann-data:
ollama-data: