-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-mac.yml
80 lines (76 loc) · 1.92 KB
/
docker-compose-mac.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3"
services:
vector_db:
image: ankane/pgvector:v0.5.0
container_name: vector_db
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=know-hub
- PGPASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- "5432:5432"
healthcheck:
test: "pg_isready -U postgres -d vector_store"
interval: 2s
timeout: 20s
retries: 10
networks:
- know-hub-network
know-hub-ai-backend:
image: ningning0111/know-hub-ai-backend-mac
restart: always
container_name: know-hub-ai-backend
ports:
- "8329:8329"
environment:
- PGVECTOR_HOST=vector_db
- PGVECTOR_DATABASE=know-hub
- PGVECTOR_USERNAME=postgres
- PGVECTOR_PASSWORD=postgres
# Key分享自:https://pgthinker.me/2023/10/03/196/
- DEFAULT_BASE_URL=https://api.mnzdna.xyz
- DEFAULT_API_KEY=sk-W9kYeE3JfWM86sr66e29FfC7B3194406B96fAd460353Dc7a
depends_on:
- vector_db
networks:
- know-hub-network
know-hub-ai-frontend:
image: ningning0111/know-hub-ai-frontend-mac
restart: always
container_name: know-hub-ai-frontend
environment:
- VITE_BACKEND_HOST=
ports:
- "3000:3000"
depends_on:
- vector_db
- know-hub-ai-backend
networks:
- know-hub-network
# minio:
# image: minio/minio:latest
# restart: always
# container_name: minio
# privileged: true
# command: server --address ":9000" --console-address ":9001" /data
# ports:
# - "9000:9000"
# - "9001:9001"
# networks:
# - know-hub-network
# volumes:
# - "./config:/root/.minio"
# - "./data:/data"
# environment:
# - MINIO_ROOT_USER=minioadmin
# - MINIO_ROOT_PASSWORD=minioadmin
# - MINIO_DEFAULT_BUCKETS=know-hub
networks:
know-hub-network:
driver: bridge