-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 1.87 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.8'
services:
chroma:
image: chromadb/chroma:0.5.20
container_name: azeru-chroma
ports:
- "8000:8000"
volumes:
- chroma-data:/chroma/data
environment:
- PERSIST_DIRECTORY=/chroma/data
restart: unless-stopped
#healthcheck:
# test: ["CMD-SHELL", "cat < /dev/null > /dev/tcp/localhost/8000"]
# interval: 15s
# timeout: 15s
#retries: 10
#start_period: 60s # Ollama needs more time on first start
ollama:
image: ollama/ollama:latest
container_name: azeru-ollama
ports:
- "11434:11434"
volumes:
- ollama-data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0:11434
restart: unless-stopped
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
# interval: 15s
#timeout: 15s
#retries: 10
#start_period: 60s # Allow extra time for Ollama to start up
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: azeru-backend
ports:
- "8080:8080"
volumes:
# Persist SQLite database on host
- ./data:/app/data
command: >
sh -c "echo 'Waiting for ChromaDB to be ready...' &&
sleep 30 &&
echo 'Starting server...' &&
./server"
environment:
- GIN_MODE=release
- GROQ_API_KEY=${GROQ_API_KEY:-}
- GROQ_MODEL=${GROQ_MODEL:-meta-llama/llama-4-scout-17b-16e-instruct}
- OLLAMA_URL=http://ollama:11434
- CHROMA_URL=http://chroma:8000
frontend:
build:
context: ./azeru
dockerfile: Dockerfile
container_name: azeru-frontend
ports:
- "3000:80"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8080
depends_on:
- backend
restart: unless-stopped
volumes:
chroma-data:
driver: local
ollama-data:
driver: local
azeru-data:
driver: local