-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 910 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 910 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
version: "3.8"
services:
osa:
build: .
ports:
- "8089:8089"
environment:
- OLLAMA_URL=http://ollama:11434
- OSA_DEFAULT_PROVIDER=ollama
env_file:
- .env
volumes:
- osa_data:/root/.osa
depends_on:
ollama:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8089/health"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
restart: unless-stopped
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:11434/ || exit 1"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
restart: unless-stopped
volumes:
osa_data:
ollama_data: