-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.25 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
services:
bot:
build: .
pull_policy: build
image: mattermost-knowledge-bot:latest
container_name: kb-bot
restart: unless-stopped
networks:
- pm-network
env_file: ./.env
environment:
OLLAMA_URL: http://ollama:11434
ports:
- "3333:3333"
volumes:
- ./data:/app/data
depends_on:
ollama:
condition: service_healthy
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
healthcheck:
test: ["CMD-SHELL", "test -f /app/data/kb-bot.db || exit 1"]
interval: 30s
timeout: 5s
retries: 5
ollama:
image: ollama/ollama:latest
container_name: kb-ollama
restart: unless-stopped
networks:
- pm-network
volumes:
- ollama_data:/root/.ollama
# The ollama image has no curl/wget; use the bundled `ollama` binary
# itself — `ollama list` is a cheap call against the local API.
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
ollama_data:
networks:
pm-network:
external: true
name: pm-network