version: '3.8' services: dvlab-api-proxy: build: . container_name: dvlab-api-proxy ports: - "5000:5000" environment: - TARGET_API_URL=https://api-code.deepvlab.ai/openai/v1/chat/completions - PROXY_PORT=5000 - LOG_LEVEL=info restart: unless-stopped # 可选:健康检查 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s