fischer-agentkit/docker-compose.dev.yml

28 lines
885 B
YAML
Raw Permalink 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.

version: "3.8"
# =============================================================================
# 开发环境 override
# =============================================================================
# 用法docker compose -f docker-compose.yaml -f docker-compose.dev.yml up -d redis postgres
#
# 仅启动 redis + postgresagentkit 在宿主机运行),映射端口到 6381/5435
# 避免与 pms-redis(6379) / geo_redis(6380) / geo_db(5433) 端口冲突
#
# .env.dev 应包含:
# REDIS_URL=redis://127.0.0.1:6381/0
# DATABASE_URL=postgresql+asyncpg://agentkit:agentkit@127.0.0.1:5435/agentkit
# =============================================================================
services:
# 开发模式不启动 agentkit 容器(在宿主机运行)
agentkit:
profiles: ["never"]
redis:
ports:
- "6381:6379"
postgres:
ports:
- "5435:5432"