chore: 加固生产部署配置
- 移除未使用的 Redis 服务 - 移除 PostgreSQL 端口暴露,仅保留 Docker 内部访问 - server 添加 healthcheck,mcp 依赖 server 确保 migration 完成后启动 - .dockerignore 排除 .env 等敏感文件 - .env.example 对齐实际所需字段 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -3,10 +3,6 @@ services:
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
redis:
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
server:
|
||||
build:
|
||||
context: .
|
||||
@@ -28,7 +24,6 @@ services:
|
||||
- ./prisma:/app/prisma
|
||||
environment:
|
||||
DATABASE_URL: postgresql://agentfox:agentfox@postgres:5432/agentfox
|
||||
REDIS_URL: redis://redis:6379
|
||||
JWT_SECRET: dev-secret
|
||||
JWT_REFRESH_SECRET: dev-refresh-secret
|
||||
SERVER_PORT: "3000"
|
||||
@@ -53,7 +48,6 @@ services:
|
||||
- ./prisma:/app/prisma
|
||||
environment:
|
||||
DATABASE_URL: postgresql://agentfox:agentfox@postgres:5432/agentfox
|
||||
REDIS_URL: redis://redis:6379
|
||||
MCP_PORT: "3001"
|
||||
NODE_ENV: development
|
||||
|
||||
|
||||
Reference in New Issue
Block a user