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=
|
MYVNC_NOVNC_PORT=
|
||||||
|
|
||||||
# Optional title (shows up in browser top bar)
|
# Optional title (shows up in browser top bar)
|
||||||
MYVNC_CUSTOM_TITLE=
|
MYVNC_NOVNC_CUSTOM_TITLE=
|
||||||
|
|
||||||
# Variable is required if using a subdirectory in proxy
|
# Variable is required if using a subdirectory in proxy
|
||||||
MYVNC_PROXYPATH=
|
MYVNC_NOVNC_PROXYPATH=
|
||||||
|
|
||||||
# Optional: Port of listening VNC server (defaults to 5900)
|
# 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
|
# An SSH tunnel will be attempted between
|
||||||
MYVNC_VNCLISTEN_HOST=
|
# ${MYVNC_NOVNC_VNCLISTEN_HOST}:${MYVNC_NOVNC_VNCLISTEN_PORT} to MYVNC_NOVNC_VNCSSH_PORT
|
||||||
MYVNC_VNCLISTEN_PORT=
|
MYVNC_NOVNC_VNCLISTEN_HOST=
|
||||||
|
MYVNC_NOVNC_VNCLISTEN_PORT=
|
||||||
|
|
||||||
# Required: Hostname and port of VNC server to listen to
|
# Required: Hostname and port of VNC server to listen to
|
||||||
MYVNC_VNCSSH_HOST=
|
MYVNC_NOVNC_VNCSSH_HOST=
|
||||||
MYVNC_VNCSSH_PORT=
|
MYVNC_NOVNC_VNCSSH_PORT=
|
||||||
|
|
||||||
# MYVNC_SSHDIR should contain the SSH private/public keys and config
|
# MYVNC_NOVNC_SSHDIR should contain the SSH private/public keys and config
|
||||||
MYVNC_SSHDIR=
|
MYVNC_NOVNC_SSHDIR=
|
||||||
|
|
||||||
# Change to true to enable multiple simultaneous connections
|
# Change to true to enable multiple simultaneous connections
|
||||||
MYVNC_VNCSHARING=false
|
MYVNC_NOVNC_VNCSHARING=
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,9 @@ USER root
|
||||||
ARG addpkg
|
ARG addpkg
|
||||||
|
|
||||||
# Install ssh client
|
# Install ssh client
|
||||||
RUN apk add --no-cache \
|
RUN apk update \
|
||||||
|
&& apk upgrade \
|
||||||
|
&& apk add --no-cache \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
&& <<-'01-init' cat >>/app/init.d/01-init.sh
|
&& <<-'01-init' cat >>/app/init.d/01-init.sh
|
||||||
|
|
||||||
|
|
@ -35,4 +37,4 @@ ssh ${MYVNC_VNCSSH_HOST} -L ${MYVNC_VNCLISTEN_HOST:-5900}:localhost:${MYVNC_VNCS
|
||||||
01-init
|
01-init
|
||||||
|
|
||||||
# Default environment
|
# Default environment
|
||||||
USER ${debug:-user}
|
USER ${debug:-user}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Docker build
|
# Docker build
|
||||||
# Optional buildtag
|
# Optional buildtag
|
||||||
DOCKER_BUILDKIT=1 \
|
# DOCKER_BUILDKIT=1 \
|
||||||
docker build . \
|
# docker build . \
|
||||||
--build-arg debug=${debug:-""} \
|
# --build-arg debug=${debug:-""} \
|
||||||
--tag ${buildtag:-myvnc/novnc}
|
# --tag ${buildtag:-myvnc/novnc}
|
||||||
|
docker compose up --build --detach
|
||||||
|
|
|
||||||
|
|
@ -3,19 +3,26 @@ services:
|
||||||
image: myvnc/novnc
|
image: myvnc/novnc
|
||||||
container_name: novnc
|
container_name: novnc
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
ports:
|
ports:
|
||||||
- ${MYVNC_NOVNC_PORT}:6900
|
- ${MYVNC_NOVNC_PORT}:6900
|
||||||
environment:
|
environment:
|
||||||
MYVNC_CUSTOM_TITLE: ${MYVNC_CUSTOM_TITLE:-noVNC}
|
MYVNC_CUSTOM_TITLE: ${MYVNC_NOVNC_CUSTOM_TITLE:-noVNC}
|
||||||
MYVNC_PROXYPATH: ${MYVNC_PROXYPATH:-/}
|
MYVNC_PROXYPATH: ${MYVNC_NOVNC_PROXYPATH:-/}
|
||||||
MYVNC_VNCSERVER_PORT: ${MYVNC_VNCSERVER_PORT:-5900}
|
|
||||||
MYVNC_VNCSSH_HOST: ${MYVNC_VNCSSH_HOST}
|
MYVNC_VNCSSH_HOST: ${MYVNC_NOVNC_VNCSSH_HOST}
|
||||||
MYVNC_VNCSSH_PORT: ${MYVNC_VNCSSH_PORT}
|
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:
|
volumes:
|
||||||
- ${MYVNC_SSHDIR}:/home/user/.ssh
|
- ${MYVNC_NOVNC_SSHDIR}:/home/user/.ssh
|
||||||
networks:
|
networks:
|
||||||
- novnc
|
- novnc
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
novnc:
|
novnc:
|
||||||
external: false
|
external: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue