-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 790 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 790 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
services:
ollama:
image: ollama/ollama:latest
container_name: empathysync-ollama
ports:
- "11434:11434"
entrypoint: ["/bin/sh", "/entrypoint.sh"]
environment:
- OLLAMA_MODEL=${OLLAMA_MODEL}
volumes:
- ollama_data:/root/.ollama
- ./scripts/entrypoint.sh:/entrypoint.sh:ro
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
app:
build: .
container_name: empathysync-app
ports:
- "8501:8501"
volumes:
- ./data:/app/data
- ./.env:/app/.env:ro
environment:
- OLLAMA_HOST=http://ollama:11434
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
volumes:
ollama_data: