Skip to content

Commit

Permalink
Add support for service URL
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Mar 22, 2024
1 parent f194d2a commit b15c905
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/COPY_ROOT/opt/ai-dock/bin/supervisor-webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trap cleanup EXIT

LISTEN_PORT=${WEBUI_PORT_LOCAL:-17860}
METRICS_PORT=${WEBUI_METRICS_PORT:-27860}
PROXY_SECURE=true
SERVICE_URL="${WEBUI_URL:-}"
QUICKTUNNELS=true

function cleanup() {
Expand All @@ -26,6 +26,7 @@ function start() {
--arg proxy_port "${PROXY_PORT}" \
--arg proxy_secure "${PROXY_SECURE,,}" \
--arg service_name "${SERVICE_NAME}" \
--arg service_url "${SERVICE_URL}" \
'$ARGS.named'
)"

Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,18 @@ services:
- SSH_PORT_LOCAL=${SSH_PORT_LOCAL:-22}
- SERVICEPORTAL_PORT_HOST=${SERVICEPORTAL_PORT_HOST:-1111}
- SERVICEPORTAL_METRICS_PORT=${SERVICEPORTAL_METRICS_PORT:-21111}
- SERVICEPORTAL_URL=${SERVICEPORTAL_URL:-}
- WEBUI_BRANCH=${WEBUI_BRANCH:-}
- WEBUI_FLAGS=${WEBUI_FLAGS:-}
- WEBUI_PORT_HOST=${WEBUI_PORT_HOST:-7860}
- WEBUI_PORT_LOCAL=${WEBUI_PORT_LOCAL:-17860}
- WEBUI_METRICS_PORT=${WEBUI_METRICS_PORT:-27860}
- WEBUI_URL=${WEBUI_URL:-}
- JUPYTER_PORT_HOST=${JUPYTER_PORT_HOST:-8888}
- JUPYTER_METRICS_PORT=${JUPYTER_METRICS_PORT:-28888}
- JUPYTER_URL=${JUPYTER_URL:-}
- SERVERLESS=${SERVERLESS:-false}
- SYNCTHING_UI_PORT_HOST=${SYNCTHING_UI_PORT_HOST:-8384}
- SYNCTHING_TRANSPORT_PORT_HOST=${SYNCTHING_TRANSPORT_PORT_HOST:-22999}
- SYNCTHING_URL=${SYNCTHING_URL:-}
#- PROVISIONING_SCRIPT=${PROVISIONING_SCRIPT:-}

0 comments on commit b15c905

Please sign in to comment.