删除无用docker

This commit is contained in:
zhangchen
2026-03-28 21:04:04 +08:00
parent 48a4372fe6
commit b96e8a5bbd
2 changed files with 0 additions and 35 deletions

View File

@@ -1,13 +0,0 @@
services:
app:
build: .
ports:
- "8000:8000" # FastAPI / Web UI
- "6080:6080" # noVNC (headed 浏览器预览)
environment:
- DISPLAY=:99
# 可选:设置 VNC 密码,不设置则无密码
# - VNC_PASSWORD=changeme
volumes:
- ./data:/app/data # 持久化 SQLite 数据库
restart: unless-stopped

View File

@@ -1,22 +0,0 @@
#!/bin/bash
set -e
# 启动虚拟显示
Xvfb :99 -screen 0 1280x800x24 -nolisten tcp &
export DISPLAY=:99
# 等待 Xvfb 就绪
sleep 1
# 启动 x11vnc无密码仅本地 VNC
if [ -n "$VNC_PASSWORD" ]; then
x11vnc -display :99 -rfbauth <(x11vnc -storepasswd "$VNC_PASSWORD" /tmp/vncpass && echo /tmp/vncpass) -forever -shared &
else
x11vnc -display :99 -nopw -forever -shared &
fi
# 启动 noVNC端口 6080 -> VNC 5900
websockify --web=/usr/share/novnc 6080 localhost:5900 &
# 启动 FastAPI 后端
exec uvicorn main:app --host 0.0.0.0 --port 8000