소스 검색

refactor(run.sh): update with port variables

Tanvir 1 년 전
부모
커밋
fd33f68f28
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      run.sh

+ 3 - 1
run.sh

@@ -2,12 +2,14 @@
 
 image_name="ollama-webui"
 container_name="ollama-webui"
+host_port=3000
+container_port=8080
 
 docker build -t "$image_name" .
 docker stop "$container_name" &>/dev/null || true
 docker rm "$container_name" &>/dev/null || true
 
-docker run -d -p 3000:8080 \
+docker run -d -p "$host_port":"$container_port" \
     --add-host=host.docker.internal:host-gateway \
     -v "${image_name}:/app/backend/data" \
     --name "$container_name" \