mirror of
https://github.com/zc-zhangchen/any-auto-register.git
synced 2026-05-15 10:56:45 +08:00
删除无用docker
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user