初始提交: Qihu-AIFlow v2.0.1 完整项目
- 前端 React+TypeScript (源码+构建产物) - 后端 Python FastAPI - 数据库迁移 001-015 - Docker部署配置 - 微信ClawBot API频道绑定 - 项目文档 README.md
This commit is contained in:
commit
78ff261b5a
199 files changed
+69126
No files matched your search
@@ -0,0 +1,97 @@
|
||||
# ============================================================
|
||||
# Qihu-AIFlow 智能自动化PaaS平台 - Docker Compose 配置
|
||||
# ============================================================
|
||||
# 部署方式:
|
||||
# docker compose up -d
|
||||
# 或: docker compose up -d --build (重建镜像)
|
||||
#
|
||||
# 端口说明:
|
||||
# 前端 (Nginx): 宿主机 12888 -> 容器内 8080
|
||||
# 后端 (Uvicorn): 宿主机 18080 -> 容器内 18080
|
||||
# ============================================================
|
||||
|
||||
services:
|
||||
aiflow:
|
||||
build: .
|
||||
container_name: qihu-aiflow
|
||||
ports:
|
||||
- "12888:8080"
|
||||
- "18080:18080"
|
||||
environment:
|
||||
- MYSQL_HOST=mysql
|
||||
- MYSQL_PORT=3306
|
||||
- MYSQL_USER=root
|
||||
- MYSQL_PASSWORD=pwd2026
|
||||
- MYSQL_DATABASE=aiflow
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_PASSWORD=pwd2026
|
||||
- SECRET_KEY=aiflow-secret-key-change-in-production-2026
|
||||
- APP_ACCESS_URL=https://bot.qihuyun.com
|
||||
- DEBUG=false
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_started
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- aiflow-network
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "10"
|
||||
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
container_name: qihu-aiflow-mysql
|
||||
command: --ssl=0
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=pwd2026
|
||||
- MYSQL_DATABASE=aiflow
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- aiflow-network
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ppwd2026"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "5"
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: qihu-aiflow-redis
|
||||
command: redis-server --requirepass pwd2026 --appendonly yes
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- aiflow-network
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "20m"
|
||||
max-file: "5"
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
redis_data:
|
||||
|
||||
networks:
|
||||
aiflow-network:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user