Skip to content

Commit 1d26f29

Browse files
committed
fix: restore noVNC functionality and fix port mappings
- Restore noVNC program section in supervisord.conf for web-based preview - Fix port mappings in docker-compose.yml for proper VNC access - Ensure correct configuration for web-based browser interaction preview
1 parent 03b099f commit 1d26f29

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64}
88
ports:
99
- "7788:7788" # Gradio default port
10-
- "6080:6081" # noVNC web interface
10+
- "6080:6080" # noVNC web interface
1111
- "5901:5901" # VNC port
1212
- "9222:9222" # Chrome remote debugging port
1313
environment:

supervisord.conf

+12
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ stopsignal=TERM
5353
stopwaitsecs=5
5454
depends_on=x11vnc
5555

56+
[program:novnc]
57+
command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc"
58+
autorestart=true
59+
stdout_logfile=/dev/stdout
60+
stdout_logfile_maxbytes=0
61+
stderr_logfile=/dev/stderr
62+
stderr_logfile_maxbytes=0
63+
priority=300
64+
startretries=5
65+
startsecs=3
66+
depends_on=x11vnc
67+
5668
[program:persistent_browser]
5769
environment=START_URL="data:text/html,<html><body><h1>Browser Ready</h1></body></html>"
5870
command=bash -c "mkdir -p /app/data/chrome_data && sleep 8 && $(find /ms-playwright/chromium-*/chrome-linux -name chrome) --user-data-dir=/app/data/chrome_data --window-position=0,0 --window-size=%(ENV_RESOLUTION_WIDTH)s,%(ENV_RESOLUTION_HEIGHT)s --start-maximized --no-sandbox --disable-dev-shm-usage --disable-gpu --disable-software-rasterizer --disable-setuid-sandbox --no-first-run --no-default-browser-check --no-experiments --ignore-certificate-errors --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0 \"$START_URL\""

0 commit comments

Comments
 (0)