-
Notifications
You must be signed in to change notification settings - Fork 63
/
docker-compose.yml
55 lines (53 loc) · 1.7 KB
/
docker-compose.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
version: '3.8' # 可以根据需要使用不同的版本
services:
fast-wiki-service:
image: registry.token-ai.cn/ai-dotnet/fast-wiki-service
container_name: fast-wiki-service
user: root
restart: always
ports:
- "8080:8080"
build:
context: .
dockerfile: ./src/Service/FastWiki.Service/Dockerfile
depends_on:
- postgres
- qdrant
volumes:
- ./wwwroot/uploads:/app/wwwroot/uploads
- ./data:/app/data
environment:
- OPENAI_CHAT_ENDPOINT=https://api.openai.com
- OPENAI_CHAT_EMBEDDING_ENDPOINT=https://api.openai.com
- DEFAULT_TYPE=pgsql
- DEFAULT_CONNECTION=Host=postgres;Port=5432;Database=wiki;Username=token;Password=dd666666
- WIKI_CONNECTION=http://qdrant:6333
- QDRANT_PORT=6334
- QDRANT_API_KEY=dd666666
- QDRANT_ENDPOINT=qdrant
- OPENAI_CHAT_TOKEN=您的TokenKey
- ASPNETCORE_ENVIRONMENT=Development
qdrant:
image: registry.token-ai.cn/qdrant/qdrant:latest
restart: always
container_name: qdrant
ports:
- 6333:6333
- 6334:6334
expose:
- 6333
- 6334
- 6335
volumes:
- ./qdrant_data:/qdrant/storage
postgres: # 当前compose服务名
image: registry.cn-shenzhen.aliyuncs.com/fast-wiki/pgvector:v0.5.0 # 拉取的数据库镜像
container_name: postgres # 容器运行的容器名称
restart: always # 开机自启动
environment: # 环境变量
POSTGRES_USER: token # 默认账号
POSTGRES_PASSWORD: dd666666 # 默认密码
POSTGRES_DB: wiki # 默认数据库
TZ: Asia/Shanghai # 数据库时区
volumes:
- ./postgresql:/var/lib/postgresql/data # 将PostgreSql数据持久化