forked from linshenkx/prompt-optimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (31 loc) · 999 Bytes
/
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
services:
prompt-optimizer:
image: linshen/prompt-optimizer:latest
# Alternatively, you can build from source:
# build:
# context: .
# dockerfile: Dockerfile
container_name: prompt-optimizer
restart: unless-stopped
ports:
- "8081:80"
environment:
# OpenAI API配置
- VITE_OPENAI_API_KEY=${VITE_OPENAI_API_KEY:-}
# Gemini API配置
- VITE_GEMINI_API_KEY=${VITE_GEMINI_API_KEY:-}
# DeepSeek API配置
- VITE_DEEPSEEK_API_KEY=${VITE_DEEPSEEK_API_KEY:-}
# SiliconFlow API配置
- VITE_SILICONFLOW_API_KEY=${VITE_SILICONFLOW_API_KEY:-}
# 自定义API配置
- VITE_CUSTOM_API_KEY=${VITE_CUSTOM_API_KEY:-}
- VITE_CUSTOM_API_BASE_URL=${VITE_CUSTOM_API_BASE_URL:-}
- VITE_CUSTOM_API_MODEL=${VITE_CUSTOM_API_MODEL:-}
# 健康检查
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s