Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (51 loc) · 1.5 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
#######################################################
# DEVELOPMENT services: Postgres, Redis, embedder. #
# Django and Vite run on the host (`make dev`). #
# Production stack: docker-compose.production.yml. #
#######################################################
name: "brain-dev"
services:
postgres:
image: pgvector/pgvector:0.8.7-pg17
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-brain}
POSTGRES_USER: ${POSTGRES_USER:-brain}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-brain}
ports:
- "${POSTGRES_PORT:-5442}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:8.12-alpine
restart: unless-stopped
ports:
- "${REDIS_PORT:-6389}:6379"
volumes:
- redis_data:/data
# Semantic search. The first build downloads the model (~250 MB).
embedder:
build:
context: docker/embedder
restart: unless-stopped
ports:
- "${EMBEDDER_PORT:-8100}:8000"
brainbro-extractor:
profiles: ["extractor"]
build:
context: .
dockerfile: docker/extractor/Dockerfile
cpus: ${EXTRACTOR_CPUS:-1}
environment:
UPLOAD_MAX_SIZE: ${UPLOAD_MAX_SIZE:-52428800}
WHISPER_LANGUAGE: ${WHISPER_LANGUAGE:-auto}
ports:
- "127.0.0.1:${EXTRACTOR_PORT:-8101}:8000"
volumes:
postgres_data:
redis_data: