-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose-ollama.yml
More file actions
41 lines (41 loc) · 1.01 KB
/
docker-compose-ollama.yml
File metadata and controls
41 lines (41 loc) · 1.01 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
services:
ollama:
build:
context: .
dockerfile: Dockerfile.ollama
# image: ollama-healthy
ports:
- 11434:11434
# expose:
# - 11434
volumes:
- ~/.ollama:/root/.ollama
healthcheck:
test: ["CMD", "/healthchk", "-m", "HEAD", "http://localhost:11434"]
interval: 60s
timeout: 20s
start_period: 20s
# start_interval: 2s
retries: 3
restart: unless-stopped
ovai:
# depends_on:
# ollama:
# condition: service_healthy
image: ${IMAGE_HUB-ghcr.io/prantlf/}ovai
environment:
OLLAMA_ORIGIN: http://ollama:11434
# DEBUG: 'ovai,ovai:*'
ports:
- 22434:22434
volumes:
- ./google-account.json:/google-account.json
# - ./model-defaults.json:/model-defaults.json
healthcheck:
test: ["CMD", "/healthchk", "-m", "HEAD", "http://localhost:22434/api/ping"]
interval: 60s
timeout: 20s
start_period: 20s
# start_interval: 2s
retries: 3
restart: unless-stopped