Files
new-api/docker-compose-custom.yml
huangzhenpc 60af0d1682 更新到官方v0.9.0-alpha.8真正最新版本并恢复自定义功能
 更新到官方真正的最新版本 v0.9.0-alpha.8
 恢复 Footer.jsx 自定义页脚 (听泉claude提供)
 恢复 Claude 穿透功能到 adaptor.go
 恢复 Docker 自定义配置 (端口3099)
 添加 service/channel_state_reporter.go

关键更新:
- 文件格式从 .js 更新为 .jsx (官方最新格式)
- Claude adaptor 保持穿透功能兼容性
- 全新的界面和功能改进

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-25 16:32:58 +08:00

37 lines
1.0 KiB
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.4'
services:
new-api-custom:
build:
context: .
dockerfile: Dockerfile
image: new-api-custom:latest
container_name: new-api-custom
restart: always
command: --log-dir /app/logs
ports:
- "3099:3000" # (3099ïã
volumes:
- ./data:/data # q«ø pnîU
- ./logs-custom:/app/logs # (ìËå×îU
environment:
- SQL_DSN=root:123456@tcp(mysql:3306)/new-api # Þ¥° „mysql¹h
- REDIS_CONN_STRING=redis://redis # Þ¥° „redis¹h
- TZ=Asia/Shanghai
- ERROR_LOG_ENABLED=true
# - STREAMING_TIMEOUT=120
# - SESSION_SECRET=random_string # ‚œ<00>:èr
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk -F: '{print $$2}'"]
interval: 30s
timeout: 10s
retries: 3
networks:
- new-api_default # Þ¥0° „QÜ
(° „ redis Œ mysql
#
šI redis Œ mysql
¡ ô¥(° ÐL„¹h
# ê<00>Þ¥0ø „QÜsï¿î
networks:
new-api_default:
external: true # (° „QÜ