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,