Files
copilot-app/docker-compose.yml
2025-08-13 19:03:20 +08:00

50 lines
2.6 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: "3.3"
services:
copilot-app:
container_name: copilot-app
#image: registry.cn-hangzhou.aliyuncs.com/ripper/copilot-proxies:latest
build: .
restart: always
ports:
- 1188:1188
#- "443:443"
environment:
- PORT=1188
- LOGIN_PASSWORD=1188
- CHAT_LOCALE=zh-CN
- HTTP_CLIENT_TIMEOUT=60
- CODEX_API_BASE=https://for.shuo.bar/v1/chat/completions
- CODEX_API_KEY=sk-oc25vXlSaSoi1tURqJ2ZfhyGj3jRkpPp8TrBIZHE6aEEz1Ov # 代码补全API地址
- CODEX_API_MODEL_NAME=glm-4.5 # 代码补全API密钥, 支持多个轮询APIKEY用英文逗号分隔
- CODEX_MAX_TOKENS=15000 # 代码补全API模型名称
- CODEX_TEMPERATURE=-1 # 代码补全API最大返回token数
- CODEX_SERVICE_TYPE=default # 代码补全API温度, 默认值为:1, deepseek模型官方推荐设置为1, 如果要跟随插件动态设置,请设置为-1
- CODEX_LIMIT_PROMPT=20 # 补全服务类型, 默认值为:default, 可选值: ollama
- CHAT_API_BASE=https://for.shuo.bar/v1/chat/completions # 限制prompt行数可减少代码补全时消耗的tokens
- CHAT_API_KEY=sk-oc25vXlSaSoi1tURqJ2ZfhyGj3jRkpPp8TrBIZHE6aEEz1Ov # 聊天补全API地址
- CHAT_API_MODEL_NAME=glm-4.5 # 聊天补全API密钥
- CHAT_MAX_TOKENS=40960 # 聊天补全API模型名称
- CHAT_USE_TOOLS=true # 聊天API最大返回token数
- DEFAULT_BASE_URL=https://mycopilot.01061220.xyz
- COPILOT_DEBOUNCE=200
- API_BASE_URL=https://api.mycopilot.01061220.xyz # 补全防抖时间(毫秒)
- PROXY_BASE_URL=https://copilot-proxy.mycopilot.01061220.xyz
- TELEMETRY_BASE_URL=https://copilot-telemetry-service.mycopilot.01061220.xyz
- COPILOT_CLIENT_TYPE=default
- COPILOT_GHU_TOKEN=ghu_xxxx # copilot的客户端类型, 用于区分是否使用官方copilot服务
- COPILOT_PROXY_ALL=false # 支持多个轮询token用英文逗号分隔
- COPILOT_ACCOUNT_TYPE=individual # 在使用官方Copilot服务的时候是否全代理请求
- DISGUISE_COPILOT_TOKEN_EXPIRES_AT=1800 # github copilot 官方账号类型, 企业版账号需要调整此参数, 否则在全代理模式下无法正常使用 (可选值: individual/business)
- EMBEDDING_API_BASE=http://127.0.0.1:5012/v1/embeddings # Copilot伪装token下发的有效期,单位秒
- EMBEDDING_API_KEY=
- EMBEDDING_API_MODEL_NAME=m3e
- EMBEDDING_DIMENSION_SIZE=1536
- LIGHTWEIGHT_MODEL=do-not-use
- VS_COPILOT_CLIENT_ID=a200baed193bb2088a6e
- VS_COPILOT_CLIENT_SECRET=
- TOKEN_SALT=1188
volumes:
- ./logs:/app/logs
- ./models.json:/root/models.json
networks: {}