-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
44 lines (41 loc) · 1002 Bytes
/
Copy pathcompose.yaml
File metadata and controls
44 lines (41 loc) · 1002 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
43
44
name: agentbreak
services:
web:
build:
context: .
image: agentbreak:local
init: true
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
- "${APP_HOST:-127.0.0.1}:${APP_PORT:-8000}:8000"
environment:
OLLAMA_BASE_URL: "${OLLAMA_BASE_URL:-http://ollama:11434}"
OLLAMA_MODEL: "${OLLAMA_MODEL:-llama3.2:3b}"
volumes:
- reports:/app/reports
tmpfs:
- /tmp
healthcheck:
test:
- CMD
- python
- -c
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/', timeout=2)"
interval: 10s
timeout: 3s
retries: 5
start_period: 5s
# Optional local model server. Enable with: docker compose --profile ollama up
ollama:
image: ollama/ollama:latest
profiles: ["ollama"]
restart: unless-stopped
ports:
- "127.0.0.1:11434:11434"
volumes:
- ollama-models:/root/.ollama
volumes:
reports:
ollama-models: