File size: 710 Bytes
f0cacfe df34ff2 ed184b6 df34ff2 f0cacfe e58bdeb 130b143 6e09c2f e58bdeb f0cacfe df34ff2 | 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 | 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
# Feature Configuration
- THINKING_PROCESSING=think
- 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 |