-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
53 lines (49 loc) · 1.13 KB
/
compose.yaml
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
services:
vector-match:
build:
context: ./vectorMatch
stdin_open: true # Equivalent to `-i`
tty: true # Equivalent to `-t`
depends_on:
- vector-db
- ollama
environment:
NODE_ENV: production
ports:
- "8000:8000"
networks:
- app_network
vector-db:
image: tensorchord/pgvecto-rs:pg16-v0.2.0
container_name: pgvectors
environment:
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
restart: unless-stopped
volumes:
- pg_data:/var/lib/postgresql/data # Persistent storage for database
- ./init-scripts:/docker-entrypoint-initdb.d # Initialization scripts
networks:
- app_network
ollama:
image: ollama/ollama:latest
container_name: ollama
ports:
- "11434:11434"
volumes:
- ./ollama_data:/data
- ./entrypoint.sh:/entrypoint.sh
tty: true
restart: always
entrypoint: ["/usr/bin/bash", "/entrypoint.sh"]
networks:
- app_network
networks:
app_network:
driver: bridge
volumes:
pg_data:
ollama_data: