-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (63 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
64 lines (63 loc) · 1.56 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
services:
localai:
image: quay.io/go-skynet/local-ai:latest
ports:
- 8081:8080
environment:
- MODELS_PATH=/models
- BACKENDS_PATH=/backends
volumes:
- models:/models:cached
- backends:/backends:cached
- images:/tmp/generated/images/
command:
- granite-embedding-107m-multilingual
postgres:
#image: quay.io/mudler/localrecall:v0.5.2-postgresql
build:
context: .
dockerfile: Dockerfile.pgsql
ports:
- 5432:5432
environment:
- POSTGRES_DB=localrecall
- POSTGRES_USER=localrecall
- POSTGRES_PASSWORD=localrecall
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U localrecall"]
interval: 10s
timeout: 5s
retries: 5
ragserver:
#image: quay.io/mudler/localrecall:v0.5.2
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
#env_file: ".env"
environment:
- COLLECTION_DB_PATH=/db
- EMBEDDING_MODEL=granite-embedding-107m-multilingual
- FILE_ASSETS=/assets
- OPENAI_API_KEY=sk-1234567890
- OPENAI_BASE_URL=http://localai:8080
- DATABASE_URL=postgresql://localrecall:localrecall@postgres:5432/localrecall?sslmode=disable
- VECTOR_ENGINE=postgres
- HYBRID_SEARCH_BM25_WEIGHT=0.5
- HYBRID_SEARCH_VECTOR_WEIGHT=0.5
volumes:
- db:/db
- assets:/assets
depends_on:
postgres:
condition: service_healthy
volumes:
models:
backends:
images:
postgres_data:
db:
assets: