-
Notifications
You must be signed in to change notification settings - Fork 400
Expand file tree
/
Copy pathcompose.pgsql.yaml
More file actions
101 lines (88 loc) · 2.94 KB
/
compose.pgsql.yaml
File metadata and controls
101 lines (88 loc) · 2.94 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
opendeepwiki:
image: crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/open-deepwiki/opendeepwiki
build:
context: .
dockerfile: src/OpenDeepWiki/Dockerfile
ports:
- "8080:8080"
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
environment:
# ASP.NET Core 环境
- ASPNETCORE_ENVIRONMENT=Production
# 服务监听地址
- URLS=http://+:8080
# 数据库配置 (PostgreSQL)
- Database__Type=postgresql
- ConnectionStrings__Default=Host=postgres;Port=5432;Database=opendeepwiki;Username=postgres;Password=opendeepwiki123
# JWT 认证配置 (生产环境请修改)
- JWT_SECRET_KEY=OpenDeepWiki-Default-Secret-Key-Please-Change-In-Production-Environment-2024
# 仓库存储目录
- REPOSITORIES_DIRECTORY=/data
# AI 服务配置 (全局默认,用于 Chat 等功能)
- CHAT_API_KEY=your-chat-api-key
- ENDPOINT=https://api.openai.com/v1
- CHAT_REQUEST_TYPE=OpenAI
# Wiki 生成器配置 - 目录生成
- WIKI_CATALOG_MODEL=gpt-4o
- WIKI_CATALOG_ENDPOINT=https://api.openai.com/v1
- WIKI_CATALOG_API_KEY=your-catalog-api-key
- WIKI_CATALOG_REQUEST_TYPE=OpenAI
# Wiki 生成器配置 - 内容生成
- WIKI_CONTENT_MODEL=gpt-4o
- WIKI_CONTENT_ENDPOINT=https://api.openai.com/v1
- WIKI_CONTENT_API_KEY=your-content-api-key
- WIKI_CONTENT_REQUEST_TYPE=OpenAI
# Wiki 生成器配置 - 翻译 (可选,不配置则使用内容生成配置)
# - WIKI_TRANSLATION_MODEL=gpt-4o
# - WIKI_TRANSLATION_ENDPOINT=https://api.openai.com/v1
# - WIKI_TRANSLATION_API_KEY=your-translation-api-key
# - WIKI_TRANSLATION_REQUEST_TYPE=OpenAI
# Wiki 生成并行数 (默认: 5)
- WIKI_PARALLEL_COUNT=5
# 多语言支持 (逗号分隔,如: en,zh,ja,ko)
- WIKI_LANGUAGES=en,zh
volumes:
- ./data:/data
web:
image: crpi-j9ha7sxwhatgtvj4.cn-shenzhen.personal.cr.aliyuncs.com/open-deepwiki/opendeepwiki-web
build:
context: ./web
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: unless-stopped
depends_on:
opendeepwiki:
condition: service_healthy
environment:
- NODE_ENV=production
- API_PROXY_URL=http://opendeepwiki:8080
postgres:
image: postgres:16-alpine
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
environment:
- POSTGRES_DB=opendeepwiki
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=opendeepwiki123
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: