-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.vibebase.yml
More file actions
42 lines (41 loc) · 1.57 KB
/
Copy pathdocker-compose.vibebase.yml
File metadata and controls
42 lines (41 loc) · 1.57 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
# VibeBase 后端容器化。
#
# 前置:先启动中间件(PostgreSQL:5433 / Redis:6379)
# docker compose -f docker-compose.middleware.yml up -d
# 再启动本服务:
# docker compose -f docker-compose.vibebase.yml up -d --build
#
# 说明:容器通过 host.docker.internal 复用宿主机上由 middleware compose 暴露的
# PostgreSQL(5433) 与 Redis(6379),无需与其共享 network。
# 生产部署可将下方 host.docker.internal 改为真实数据库地址,并配置模型密钥。
services:
vibe-base:
build:
context: ./VibeBase/vibe-base
dockerfile: Dockerfile
image: vibe-base:latest
container_name: vibe-base
restart: unless-stopped
ports:
- "8081:8081"
environment:
ENVIRONMENT: production
DATABASE_URL: postgresql+asyncpg://vibe:vibe@host.docker.internal:5433/vibe
REDIS_URL: redis://host.docker.internal:6379/0
SECRET_KEY: vibe-dev-shared-secret-change-in-prod
# AI 模型(留空则对话/图片理解走降级)
OPENAI_API_KEY: ""
OPENAI_BASE_URL: "https://dashscope.aliyuncs.com/compatible-mode/v1"
OPENAI_MODEL: "qwen-plus"
VL_API_KEY: ""
VL_BASE_URL: "https://dashscope.aliyuncs.com/compatible-mode/v1"
VL_MODEL: "qwen-vl-plus"
# 对象存储 S3
S3_ENDPOINT: http://host.docker.internal:9000
S3_ACCESS_KEY: minioadmin
S3_SECRET_KEY: minioadmin
S3_BUCKET: vibe-storage
# 支付回调验签密钥(留空则拒绝匿名回调)
PAYMENT_NOTIFY_SECRET: ""
extra_hosts:
- "host.docker.internal:host-gateway"