mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 21:38:43 +00:00
refactor(run.sh): update with port variables
This commit is contained in:
parent
8bb68cfcae
commit
fd33f68f28
4
run.sh
4
run.sh
@ -2,12 +2,14 @@
|
|||||||
|
|
||||||
image_name="ollama-webui"
|
image_name="ollama-webui"
|
||||||
container_name="ollama-webui"
|
container_name="ollama-webui"
|
||||||
|
host_port=3000
|
||||||
|
container_port=8080
|
||||||
|
|
||||||
docker build -t "$image_name" .
|
docker build -t "$image_name" .
|
||||||
docker stop "$container_name" &>/dev/null || true
|
docker stop "$container_name" &>/dev/null || true
|
||||||
docker rm "$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 \
|
--add-host=host.docker.internal:host-gateway \
|
||||||
-v "${image_name}:/app/backend/data" \
|
-v "${image_name}:/app/backend/data" \
|
||||||
--name "$container_name" \
|
--name "$container_name" \
|
||||||
|
Loading…
Reference in New Issue
Block a user