- 添加 `FileReadTool`,支持文件内容读取与安全验证 - 引入 `hasToolMessages` 逻辑,优化工具历史上下文处理 - 修改工具选项逻辑,支持禁用工具时的动态调整 - 增加消息序列化逻辑,优化 Redis 序列管理与数据同步 - 扩展测试覆盖,验证序列化与工具调用场景 - 增强 Docker Compose 脚本,支持应用重置与日志清理 - 调整工具调用超时设置,提升运行时用户体验
87 lines
1.8 KiB
YAML
Executable File
87 lines
1.8 KiB
YAML
Executable File
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/app/Dockerfile
|
|
image: ars_backend:latest
|
|
entrypoint: ["/app/docker/app/entrypoint.sh"]
|
|
volumes:
|
|
- ./:/app
|
|
#- ../ars-front:/app-frontend
|
|
environment:
|
|
APP_ENV: local
|
|
APP_DEBUG: "true"
|
|
APP_URL: http://localhost:8000
|
|
OCTANE_SERVER: frankenphp
|
|
DB_CONNECTION: pgsql
|
|
DB_HOST: pgsql
|
|
DB_PORT: 5432
|
|
DB_DATABASE: ars_backend
|
|
DB_USERNAME: ars
|
|
DB_PASSWORD: secret
|
|
REDIS_HOST: redis
|
|
REDIS_PASSWORD: "null"
|
|
REDIS_PORT: 6379
|
|
QUEUE_CONNECTION: redis
|
|
ports:
|
|
- "8000:8000"
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
depends_on:
|
|
- pgsql
|
|
- redis
|
|
tty: true
|
|
|
|
horizon:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/app/Dockerfile
|
|
image: ars_backend:latest
|
|
entrypoint: ["/app/docker/app/entrypoint.sh"]
|
|
environment:
|
|
CONTAINER_ROLE: horizon
|
|
APP_ENV: local
|
|
APP_DEBUG: "true"
|
|
APP_URL: http://localhost:8000
|
|
OCTANE_SERVER: frankenphp
|
|
DB_CONNECTION: pgsql
|
|
DB_HOST: pgsql
|
|
DB_PORT: 5432
|
|
DB_DATABASE: ars_backend
|
|
DB_USERNAME: ars
|
|
DB_PASSWORD: secret
|
|
REDIS_HOST: redis
|
|
REDIS_PASSWORD: "null"
|
|
REDIS_PORT: 6379
|
|
QUEUE_CONNECTION: redis
|
|
volumes:
|
|
- ./:/app
|
|
#- ../ars-front:/app-frontend
|
|
depends_on:
|
|
- pgsql
|
|
- redis
|
|
tty: true
|
|
|
|
pgsql:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: ars_backend
|
|
POSTGRES_USER: ars
|
|
POSTGRES_PASSWORD: secret
|
|
volumes:
|
|
- pgsql_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
command: redis-server --appendonly yes
|
|
volumes:
|
|
- redis_data:/data
|
|
ports:
|
|
- "6379:6379"
|
|
|
|
volumes:
|
|
pgsql_data:
|
|
redis_data:
|