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:
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user