From 0a888739c3de76d6b2917aaa5c10503dd5e9a2f1 Mon Sep 17 00:00:00 2001 From: Yohei Kakiuchi Date: Mon, 7 Dec 2020 15:20:48 +0900 Subject: [PATCH] make output port configurable --- Dockerfile | 3 ++- conf.d/websockify.conf | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a0826a6..e84221e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,7 @@ RUN cp /app/index.html /novnc/ VOLUME /tmp/.X11-unix -EXPOSE 80 +ENV PUBPORT 80 +EXPOSE $PUBPORT CMD ["supervisord", "-c", "/app/supervisord.conf"] \ No newline at end of file diff --git a/conf.d/websockify.conf b/conf.d/websockify.conf index 92ad718..3c51dd8 100644 --- a/conf.d/websockify.conf +++ b/conf.d/websockify.conf @@ -1,3 +1,3 @@ [program:websockify] -command=websockify --web /novnc 80 localhost:5900 +command=websockify --web /novnc %(ENV_PUBPORT)s localhost:5900 autorestart=true