mirror of
https://git.myvelabs.com/novnc/alpine.git
synced 2025-12-17 21:26:21 +00:00
Update bare novnc
This commit is contained in:
parent
fd2cb51321
commit
906d66f403
4 changed files with 34 additions and 23 deletions
21
novnc/.env
21
novnc/.env
|
|
@ -3,22 +3,23 @@
|
|||
MYVNC_NOVNC_PORT=
|
||||
|
||||
# Optional title (shows up in browser top bar)
|
||||
MYVNC_CUSTOM_TITLE=
|
||||
MYVNC_NOVNC_CUSTOM_TITLE=
|
||||
|
||||
# Variable is required if using a subdirectory in proxy
|
||||
MYVNC_PROXYPATH=
|
||||
MYVNC_NOVNC_PROXYPATH=
|
||||
|
||||
# Optional: Port of listening VNC server (defaults to 5900)
|
||||
# An SSH tunnel will be attempted between ${MYVNC_VNCSERVER_HOST}:${MYVNC_VNCSERVER_PORT} to MYVNC_VNCSSH_PORT
|
||||
MYVNC_VNCLISTEN_HOST=
|
||||
MYVNC_VNCLISTEN_PORT=
|
||||
# An SSH tunnel will be attempted between
|
||||
# ${MYVNC_NOVNC_VNCLISTEN_HOST}:${MYVNC_NOVNC_VNCLISTEN_PORT} to MYVNC_NOVNC_VNCSSH_PORT
|
||||
MYVNC_NOVNC_VNCLISTEN_HOST=
|
||||
MYVNC_NOVNC_VNCLISTEN_PORT=
|
||||
|
||||
# Required: Hostname and port of VNC server to listen to
|
||||
MYVNC_VNCSSH_HOST=
|
||||
MYVNC_VNCSSH_PORT=
|
||||
MYVNC_NOVNC_VNCSSH_HOST=
|
||||
MYVNC_NOVNC_VNCSSH_PORT=
|
||||
|
||||
# MYVNC_SSHDIR should contain the SSH private/public keys and config
|
||||
MYVNC_SSHDIR=
|
||||
# MYVNC_NOVNC_SSHDIR should contain the SSH private/public keys and config
|
||||
MYVNC_NOVNC_SSHDIR=
|
||||
|
||||
# Change to true to enable multiple simultaneous connections
|
||||
MYVNC_VNCSHARING=false
|
||||
MYVNC_NOVNC_VNCSHARING=
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ USER root
|
|||
ARG addpkg
|
||||
|
||||
# Install ssh client
|
||||
RUN apk add --no-cache \
|
||||
RUN apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add --no-cache \
|
||||
openssh-client \
|
||||
&& <<-'01-init' cat >>/app/init.d/01-init.sh
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
# Docker build
|
||||
# Optional buildtag
|
||||
DOCKER_BUILDKIT=1 \
|
||||
docker build . \
|
||||
--build-arg debug=${debug:-""} \
|
||||
--tag ${buildtag:-myvnc/novnc}
|
||||
# DOCKER_BUILDKIT=1 \
|
||||
# docker build . \
|
||||
# --build-arg debug=${debug:-""} \
|
||||
# --tag ${buildtag:-myvnc/novnc}
|
||||
docker compose up --build --detach
|
||||
|
|
|
|||
|
|
@ -3,16 +3,23 @@ services:
|
|||
image: myvnc/novnc
|
||||
container_name: novnc
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- ${MYVNC_NOVNC_PORT}:6900
|
||||
environment:
|
||||
MYVNC_CUSTOM_TITLE: ${MYVNC_CUSTOM_TITLE:-noVNC}
|
||||
MYVNC_PROXYPATH: ${MYVNC_PROXYPATH:-/}
|
||||
MYVNC_VNCSERVER_PORT: ${MYVNC_VNCSERVER_PORT:-5900}
|
||||
MYVNC_VNCSSH_HOST: ${MYVNC_VNCSSH_HOST}
|
||||
MYVNC_VNCSSH_PORT: ${MYVNC_VNCSSH_PORT}
|
||||
MYVNC_CUSTOM_TITLE: ${MYVNC_NOVNC_CUSTOM_TITLE:-noVNC}
|
||||
MYVNC_PROXYPATH: ${MYVNC_NOVNC_PROXYPATH:-/}
|
||||
|
||||
MYVNC_VNCSSH_HOST: ${MYVNC_NOVNC_VNCSSH_HOST}
|
||||
MYVNC_VNCSSH_PORT: ${MYVNC_NOVNC_VNCSSH_PORT}
|
||||
|
||||
MYVNC_VNCLISTEN_HOST: ${MYVNC_NOVNC_VNCLISTEN_HOST:-localhost}
|
||||
MYVNC_VNCLISTEN_PORT: ${MYVNC_NOVNC_VNCLISTEN_PORT:-5900}
|
||||
|
||||
MYVNC_VNCSHARING: ${MYVNC_NOVNC_VNCSHARING:-false}
|
||||
volumes:
|
||||
- ${MYVNC_SSHDIR}:/home/user/.ssh
|
||||
- ${MYVNC_NOVNC_SSHDIR}:/home/user/.ssh
|
||||
networks:
|
||||
- novnc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue