-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (69 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (69 loc) · 1.8 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
name: delibera
services:
# ollama:
# image: ollama/ollama:latest
# container_name: delibera-ollama
# restart: unless-stopped
# ports:
# - "11434:11434"
# volumes:
# - ollama-data:/root/.ollama
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
# interval: 10s
# timeout: 5s
# retries: 10
# start_period: 20s
# ollama-pull:
# image: curlimages/curl:latest
# container_name: delibera-ollama-pull
# depends_on:
# ollama:
# condition: service_healthy
# entrypoint: ["/bin/sh", "-c"]
# command:
# - |
# set -eu
# for model in llama2 qwen2.5 nomic-embed-text; do
# echo "Pulling $$model..."
# curl -sS -X POST http://ollama:11434/api/pull -d "{\"name\":\"$$model\"}" || true
# done
# echo "Model pull step finished."
# restart: "no"
qdrant:
image: qdrant/qdrant:latest
container_name: delibera-qdrant
restart: unless-stopped
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant-data:/qdrant/storage
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:6333/readyz"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
postgres:
image: pgvector/pgvector:pg16
container_name: delibera-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: council_vectors
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d council_vectors"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
volumes:
# ollama-data:
qdrant-data:
postgres-data: