feat: Implement initial full-stack application structure including frontend pages, components, hooks, API integration, and backend services for account pooling and management.

This commit is contained in:
2026-01-30 07:40:35 +08:00
commit f4448bbef2
106 changed files with 19282 additions and 0 deletions

40
docker-compose.yml Normal file
View File

@@ -0,0 +1,40 @@
# ===========================================
# Codex Pool - Docker Compose 配置
# ===========================================
# 使用方式:
# docker-compose up -d # 启动服务
# docker-compose logs -f # 查看日志
# docker-compose down # 停止服务
# ===========================================
services:
# ===========================================================================
# Codex Pool Application (前后端一体)
# ===========================================================================
codex-pool:
build:
context: .
dockerfile: Dockerfile
image: codex-pool:latest
container_name: codex-pool
restart: unless-stopped
ports:
- "${BIND_HOST:-0.0.0.0}:${PORT:-8848}:8848"
volumes:
# 数据持久化 (配置文件和数据库)
- ./data:/app/data
environment:
- TZ=${TZ:-Asia/Shanghai}
- CONFIG_PATH=/app/data/config.json
networks:
- codex-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8848/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
codex-network:
driver: bridge