-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 894 Bytes
/
docker-compose.yml
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
version: "3.8"
services:
tinnychat:
build: .
container_name: tinnychat
ports:
- "8080:8080"
depends_on:
- chromadb
- ollama
- ollama-models-pull
volumes:
- .:/app
chromadb:
image: chromadb/chroma:latest
container_name: chromadb
environment:
- PORT=8000
ports:
- "8000:8000"
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
healthcheck:
test: ollama list || exit 1
interval: 10s
timeout: 30s
retries: 5
start_period: 10s
ollama-models-pull:
container_name: ollama-models-pull
image: curlimages/curl:latest
command: >
http://ollama:11434/api/pull -d '{"name":"tinyllama"}'
depends_on:
ollama:
condition: service_healthy
volumes:
ollama-data: