Added second default port for web app that could be inside the docker (gradio, nginx, apache, ...)

vscode
Vladimir Protsenko 12 months ago
parent fefb3ef46b
commit 1c3e45e858

@ -1,13 +1,15 @@
#!/bin/bash
CURDIRNAME=${PWD##*/}
PORT=8400
VSCODE_PORT=8400
YOURAPP_INSIDE_DOCKER_PORT=24000
PASSWORD=$(openssl rand -base64 45)
docker run \
-d \
--rm \
--gpus "device=0" \
-p $PORT:8443 \
-p ${VSCODE_PORT}:8443 \
-p ${YOURAPP_INSIDE_DOCKER_PORT}:443 \
-v $(pwd):/wd \
--shm-size=10gb \
--name ${USER}_${CURDIRNAME}_vscode \

Loading…
Cancel
Save