DevOS v1 + Phase 2: unified resource model, infra ops, website deployment, AI chat ops
- Monorepo: NestJS API (Fastify) + React web (antd/ProComponents) + shared packages - PostgreSQL/Prisma (unified resources, relations graph, audit, events, jobs) - Auth/RBAC/workspace isolation, credential vault (AES-256-GCM) - Servers/SSH, Docker discovery & lifecycle, Job Center - Websites & deployments (git provider credential clone, env, health verification) - Domains/DNS (Cloudflare adapter), certificates (TLS probe), monitoring - Automation (cron/event/webhook HMAC + notifications), AI Gateway, MCP (29 tools) - AI chat window (LLM function-calling + rules fallback, SSE streaming, approvals) - Notes: Vditor WYSIWYG markdown editor, non-blocking autosave - Tests: 35 unit/security tests; UI audit clean (desktop+mobile, deep links)
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
name: devos
|
||||
|
||||
services:
|
||||
# 数据库字段: PostgreSQL 主数据库(系统记录源)
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: devos-postgres
|
||||
environment:
|
||||
POSTGRES_USER: devos
|
||||
POSTGRES_PASSWORD: devos
|
||||
POSTGRES_DB: devos
|
||||
ports:
|
||||
- "127.0.0.1:15432:5432"
|
||||
volumes:
|
||||
- devos-pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U devos -d devos"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
|
||||
# 数据库字段: Redis(任务派发 / 事件总线 pub-sub)
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: devos-redis
|
||||
ports:
|
||||
- "127.0.0.1:16379:6379"
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 20
|
||||
|
||||
# 数据库字段: 开发用 SSH 目标机(挂载宿主 docker.sock 用于联调 Docker 发现),--profile dev-target 启用
|
||||
ssh-target:
|
||||
profiles: ["dev-target"]
|
||||
build: ./infra/ssh-target
|
||||
container_name: devos-ssh-target
|
||||
ports:
|
||||
- "127.0.0.1:2222:22"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
devos-pgdata:
|
||||
Reference in New Issue
Block a user