功能:新增云管API与Web控制台并完成现场接入

This commit is contained in:
songyiming committed 2026-11-09 17:54:52 +08:00
1 parent 18a9ce995d
commit 3fb7b4da8c
79 files changed
+17367 -3

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
name: vdi-cloud-dev
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: vdi
POSTGRES_PASSWORD: vdi-local-demo
POSTGRES_DB: vdi
ports:
- "127.0.0.1:55438:5432"
volumes:
- vdi-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vdi -d vdi"]
interval: 3s
timeout: 3s
retries: 20
api:
build:
context: ..
dockerfile: platform/Dockerfile
environment:
VDI_MODE: demo
VDI_LISTEN: 0.0.0.0:8080
VDI_JWT_SECRET: local-demo-only-change-before-any-production-use-2026
DATABASE_URL: postgres://vdi:vdi-local-demo@postgres:5432/vdi?sslmode=disable
ports:
- "127.0.0.1:${VDI_API_PORT:-8088}:8080"
depends_on:
postgres:
condition: service_healthy
init: true
console:
build:
context: ..
dockerfile: console/Dockerfile
args:
VITE_DEMO_HINT: "true"
ports:
- "127.0.0.1:${VDI_CONSOLE_PORT:-5180}:80"
depends_on:
- api
volumes:
vdi-postgres: