https://github.com/javanile/novnc
Ready to use NoVNC client for SeleniumHQ on Docker
https://github.com/javanile/novnc
behavior-driven-development docker docker-compose novnc novnc-html5 selenium
Last synced: 11 months ago
JSON representation
Ready to use NoVNC client for SeleniumHQ on Docker
- Host: GitHub
- URL: https://github.com/javanile/novnc
- Owner: javanile
- License: mit
- Created: 2018-08-23T21:44:38.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-03-26T16:21:23.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T21:52:16.205Z (11 months ago)
- Topics: behavior-driven-development, docker, docker-compose, novnc, novnc-html5, selenium
- Language: Shell
- Homepage: https://hub.docker.com/r/javanile/novnc
- Size: 14.6 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⭐ Give me a star, please! ⭐


---
# javanile/novnc
This image is intended to run a small standalone server that can target either other machines on the same network or other Docker containers.
[](https://hub.docker.com/r/javanile/novnc)
[](https://hub.docker.com/r/javanile/novnc)
## Usage
**STEP #1** Place NoVNC service into your docker-compose.yml file
```yml
version: '2'
services:
novnc:
image: javanile/novnc
environment:
- REMOTE_HOST=localhost
- REMOTE_PORT=5900
ports:
- 8081:8081
links:
- selenium
selenium:
image: selenium/standalone-chrome-debug:3.11.0-californium
environment:
- VNC_NO_PASSWORD=1
- SCREEN_WIDTH=1200
- SCREEN_HEIGHT=675
ports:
- 4444:4444
- 5900:5900
```
**STEP #2** Run container with follow command
```bash
docker-compose up -d
```
**STEP #3** Now visit this http://localhost:8081 boom!
## Configuration
Two environment variables exist in the docker file for configuration REMOTE_HOST and REMOTE_PORT.
### Variables
- **REMOTE_HOST**: Host running a VNC Server to connect to - defaults to *localhost*
- **REMOTE_PORT**: Port that the VNC Server is listening on - defaults to *5900*
### Ports
- **8081** is exposed by default.
## Standalone usage
```bash
docker run -d -p 8081:8081 -e REMOTE_HOST=192.168.86.135 -e REMOTE_PORT=5901 javanile/novnc
```