z2api / deploy /docker-compose.yml
ZyphrZero
🌟 feat(core): 功能:实现token池管理,以改进身份验证处理
4803675
raw
history blame
646 Bytes
version: '3.8'
services:
api-server:
build:
context: ..
dockerfile: deploy/Dockerfile
container_name: z-ai-api-server
ports:
- "8080:8080"
environment:
# Auth Configuration
- AUTH_TOKEN=sk-your-api-key
# 是否跳过api key验证
- SKIP_AUTH_TOKEN=false
# Server Configurations
- DEBUG_LOGGING=true
- ANONYMOUS_MODE=true
- TOOL_SUPPORT=true
- SCAN_LIMIT=200000
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/v1/models"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s