-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.23 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
services:
ollama:
image: ollama/ollama:latest
volumes:
- ollama_data:/root/.ollama
ports:
- "11434:11434"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
goreason:
build: .
ports:
- "8080:8080"
volumes:
- goreason_data:/data
- ./documents:/documents:ro
environment:
GOREASON_DB_PATH: /data/goreason.db
GOREASON_CHAT_BASE_URL: http://ollama:11434
GOREASON_EMBED_BASE_URL: http://ollama:11434
GOREASON_API_KEY: ${GOREASON_API_KEY:-}
GOREASON_CORS_ORIGINS: ${GOREASON_CORS_ORIGINS:-}
depends_on:
ollama:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
deploy:
resources:
limits:
memory: 2G
security_opt:
- no-new-privileges:true
restart: unless-stopped
volumes:
ollama_data:
goreason_data: