Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
fd33f68f
Unverified
Commit
fd33f68f
authored
Jan 09, 2024
by
Tanvir
Browse files
refactor(run.sh): update with port variables
parent
8bb68cfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
run.sh
run.sh
+3
-1
No files found.
run.sh
View file @
fd33f68f
...
@@ -2,12 +2,14 @@
...
@@ -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
"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment