noVNC in Docker
Based on bonigarcia/novnc
First install a VNC server such as TightVNC. Set its settings as:
- Server
- Incoming Viewer Connections
- Accept incoming connections: same port as configured in
docker-compose.yml(default 5900) - Require VNC authentication
- Set the primary and view-only passwords
- Accept incoming connections: same port as configured in
- Miscellaneous
- Enable file transfers: disable (if using for view only)
- Connect to RDP session: enable
- Web Access
- Serve Java Viewer to Web clients: disable (noVNC is the JavaScript replacement for this)
- Input Handling: Block remote input events (if using for view only)
- Incoming Viewer Connections
- Access Control -> Loopback Connections
- Allow loopback connections
- Allow only loopback connections
- Administration -> Session Sharing
- "Always treat connections as shared, add new clients and keep old connections"
Enable TLS and Syslog in
docker-compose.yml if you can.
Then start the noVNC server with:
docker compose up -d