-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.61 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
services:
qdrant:
image: "docker.io/qdrant/qdrant:v1.13.6"
environment:
QDRANT__SERVICE__API_KEY: "${qdrant_api_key}"
QDRANT__SERVICE__ENABLE_STATIC_CONTENT: "0"
volumes:
- type: "volume"
target: "/qdrant/storage"
source: "brainloop-qdrant-data"
read_only: false
postgres:
image: postgres:latest
environment:
POSTGRES_DB: "brainloop"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "${pg_password}"
volumes:
- type: "volume"
target: "/var/lib/postgresql/data"
source: "brainloop-postgres-data"
read_only: false
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5
brainloop:
build:
context: ./
dockerfile: ./Brainloop/dockerfile
ports:
- "11435:11435"
environment:
HTTP_PORTS: 11435
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
AppOptions:DataDbProvider: "PostgreSQL"
AppOptions:DataDbConnectionString: "Host=postgres;Username=postgres;Password=${pg_password};Database=brainloop"
AppOptions:VectorDbProvider: "Qdrant"
AppOptions:VectorDbConnectionString: "Endpoint=http://qdrant:6334;Key=${qdrant_api_key}"
volumes:
- type: "volume"
target: "/app/documents"
source: "brainloop-documents"
read_only: false
depends_on:
postgres:
condition: "service_healthy"
qdrant:
condition: "service_started"
volumes:
brainloop-postgres-data:
driver: "local"
brainloop-qdrant-data:
driver: "local"
brainloop-documents:
driver: "local"