1
0

feat: KVM虚拟化管理平台初始版本

Esse commit está contido em:
admin
2026-04-30 15:51:48 +08:00
commit fac8ab7470
42 arquivos alterados com 5621 adições e 0 exclusões
+27
Ver Arquivo
@@ -0,0 +1,27 @@
version: '3.8'
services:
backend:
build: ./backend
container_name: kvm-backend
restart: unless-stopped
network_mode: host
pid: host
privileged: true
volumes:
- /var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock
- /var/lib/libvirt:/var/lib/libvirt
- /vol1:/vol1
- /proc:/host_proc:ro
environment:
- LIBVIRT_URI=qemu:///system
command: uvicorn app.main:app --host 0.0.0.0 --port 8004
frontend:
build: ./frontend
container_name: kvm-frontend
restart: unless-stopped
ports:
- "8005:80"
depends_on:
- backend