Files
mcp-auth/docker-compose.yml
T

42 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.
# 汽车零部件智能报价 — 两个 MCP 服务编排
# 数据库为外部 PostgreSQL(192.168.1.206:5432),不在本编排内
# 启动:docker compose up -d
# 停止:docker compose down
# 日志:docker compose logs -f
# 网络模式 host:容器直接共享宿主网络栈,绕开 Docker 桥接 FORWARD 链,
# 便于局域网其他机器经 192.168.1.119:8001/8002 直接访问(无需 ports 映射)
services:
mcp-for-erp:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: mcp-for-erp
image: mcp-for-erp:latest
container_name: mcp-for-erp
network_mode: host
environment:
- ERP_DB_HOST=192.168.1.206
- ERP_DB_PORT=5432
- ERP_DB_USER=postgres
- ERP_DB_PASSWORD=digiwin
- ERP_DB_NAME=smart_quotation_auto
restart: unless-stopped
mcp-for-crm:
build:
context: .
dockerfile: Dockerfile
args:
SERVICE: mcp-for-crm
image: mcp-for-crm:latest
container_name: mcp-for-crm
network_mode: host
environment:
- CRM_DB_HOST=192.168.1.206
- CRM_DB_PORT=5432
- CRM_DB_USER=postgres
- CRM_DB_PASSWORD=digiwin
- CRM_DB_NAME=smart_quotation_auto
restart: unless-stopped