diff --git a/docker-compose.yml b/docker-compose.yml index 4a752cf..2379409 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64} ports: - "7788:7788" # Gradio default port - - "6080:6081" # noVNC web interface + - "6080:6080" # noVNC web interface - "5901:5901" # VNC port - "9222:9222" # Chrome remote debugging port environment: diff --git a/supervisord.conf b/supervisord.conf index e31fcbc..3410b91 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -53,6 +53,18 @@ stopsignal=TERM stopwaitsecs=5 depends_on=x11vnc +[program:novnc] +command=bash -c "sleep 5 && cd /opt/novnc && ./utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:6080 --web /opt/novnc" +autorestart=true +stdout_logfile=/dev/stdout +stdout_logfile_maxbytes=0 +stderr_logfile=/dev/stderr +stderr_logfile_maxbytes=0 +priority=300 +startretries=5 +startsecs=3 +depends_on=x11vnc + [program:persistent_browser] environment=START_URL="data:text/html,

Browser Ready

" 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\""