From 671aa53e6e94b28f8a62d46b8a0fc28c4648df75 Mon Sep 17 00:00:00 2001 From: myve Date: Fri, 19 Jul 2024 00:56:31 +0000 Subject: [PATCH] Add novnc/docker-compose.yaml --- novnc/docker-compose.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 novnc/docker-compose.yaml diff --git a/novnc/docker-compose.yaml b/novnc/docker-compose.yaml new file mode 100644 index 0000000..e626858 --- /dev/null +++ b/novnc/docker-compose.yaml @@ -0,0 +1,31 @@ +services: + novnc: + image: alpine/novnc + container_name: novnc + restart: unless-stopped + shm_size: 2gb + ports: + - ${MYVNC_NOVNC_PORT}:6900 + environment: + # Optional title (shows up in browser top bar) + MYVNC_CUSTOM_TITLE: ${MYVNC_CUSTOM_TITLE:-noVNC} + + # Variable is required if using a subdirectory in proxy + MYVNC_PROXYPATH: ${MYVNC_PROXYPATH:-/} + + # Optional: Port of listening VNC server (defaults to 5900) + # An SSH tunnel will be attempted between localhost:5900 to MYVNC_VNCCLIENT_PORT + MYVNC_VNCSLOCAL_PORT: ${MYVNC_VNCSLOCAL_PORT:-5900} + + # Required: Hostname and port of VNC server + MYVNC_VNCSERVER_HOST: ${MYVNC_VNCSERVER_HOST} + MYVNC_VNCSERVER_PORT: ${MYVNC_VNCSERVER_PORT} + volumes: + # MYVNC_SSHDIR should contain the SSH private/public keys and config + - ${MYVNC_SSHDIR}:/home/user/.ssh + networks: + - novnc + +networks: + novnc: + external: false \ No newline at end of file