api-server/docker-compose.local.yml
wangdl 05cf369bee
Some checks failed
Deploy API Server / build-and-unit (push) Successful in 42s
Deploy API Server / current-integration (push) Failing after 3m6s
Deploy API Server / backward-compat (push) Successful in 17s
Deploy API Server / deploy (push) Has been skipped
feat: 本地开发环境配置 + Python 3.9 兼容修复
- 添加 docker-compose.local.yml(MySQL/Redis/Qdrant 本地基础设施)
- 添加 mysql.conf.d 本地 MySQL 低资源配置
- RAG Worker Python 3.9 兼容(from __future__ import annotations)
- 同步最新业务代码变更
2026-06-27 12:42:44 +08:00

52 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

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.

# 知习 本地开发环境 Docker Compose
# 只包含基础设施MySQL/Redis/QdrantAPI/Worker/RAG Worker 在宿主机运行
services:
mysql:
image: mysql:8.0
container_name: zhixi-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: Zhixi@2026!Root_8C
MYSQL_DATABASE: zhixi_prod
ports:
- '3306:3306'
volumes:
- mysql_local:/var/lib/mysql
- ./mysql.conf.d:/etc/mysql/conf.d:ro
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: zhixi-redis
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- redis_local:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant:latest
container_name: zhixi-qdrant
restart: unless-stopped
ports:
- '6333:6333'
- '6334:6334'
volumes:
- qdrant_local:/qdrant/storage
# Qdrant image 不带 wget/curl跳过 healthcheck
volumes:
mysql_local:
redis_local:
qdrant_local: