-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 1.01 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
services:
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: trindex
POSTGRES_PASSWORD: trindex
POSTGRES_DB: trindex
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U trindex"]
interval: 5s
timeout: 5s
retries: 5
trindex-server:
build: .
ports:
- "9636:9636"
environment:
HTTP_HOST: "0.0.0.0"
HTTP_PORT: "9636"
TRINDEX_API_KEY: ${TRINDEX_API_KEY:-change-me-in-production}
DATABASE_URL: postgres://trindex:trindex@postgres:5432/trindex?sslmode=disable
# Connect to Ollama running on the host (not in Docker)
EMBED_BASE_URL: http://host.docker.internal:11434/v1
EMBED_MODEL: nomic-embed-text
EMBED_API_KEY: ollama
EMBED_DIMENSIONS: 768
depends_on:
postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
command: ["server"]
volumes:
pgdata: