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
7bdef561
Commit
7bdef561
authored
Dec 27, 2023
by
Timothy J. Baek
Browse files
fix: docker container volume mount location
parent
21c7f507
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
+8
-7
README.md
README.md
+4
-4
backend/apps/web/internal/db.py
backend/apps/web/internal/db.py
+1
-1
backend/data/readme.txt
backend/data/readme.txt
+1
-0
docker-compose.yml
docker-compose.yml
+1
-1
run.sh
run.sh
+1
-1
No files found.
README.md
View file @
7bdef561
...
@@ -112,14 +112,14 @@ After installing Ollama, verify that Ollama is running by accessing the followin
...
@@ -112,14 +112,14 @@ After installing Ollama, verify that Ollama is running by accessing the followin
If Ollama is hosted on your local machine and accessible at
[
http://127.0.0.1:11434/
](
http://127.0.0.1:11434/
)
, run the following command:
If Ollama is hosted on your local machine and accessible at
[
http://127.0.0.1:11434/
](
http://127.0.0.1:11434/
)
, run the following command:
```
bash
```
bash
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
--name
ollama-webui
--restart
always ghcr.io/ollama-webui/ollama-webui:main
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
/data
--name
ollama-webui
--restart
always ghcr.io/ollama-webui/ollama-webui:main
```
```
Alternatively, if you prefer to build the container yourself, use the following command:
Alternatively, if you prefer to build the container yourself, use the following command:
```
bash
```
bash
docker build
-t
ollama-webui
.
docker build
-t
ollama-webui
.
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
--name
ollama-webui
--restart
always ollama-webui
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
/data
--name
ollama-webui
--restart
always ollama-webui
```
```
Your Ollama Web UI should now be hosted at
[
http://localhost:3000
](
http://localhost:3000
)
and accessible over LAN (or Network). Enjoy! 😄
Your Ollama Web UI should now be hosted at
[
http://localhost:3000
](
http://localhost:3000
)
and accessible over LAN (or Network). Enjoy! 😄
...
@@ -129,14 +129,14 @@ Your Ollama Web UI should now be hosted at [http://localhost:3000](http://localh
...
@@ -129,14 +129,14 @@ Your Ollama Web UI should now be hosted at [http://localhost:3000](http://localh
Change
`OLLAMA_API_BASE_URL`
environment variable to match the external Ollama Server url:
Change
`OLLAMA_API_BASE_URL`
environment variable to match the external Ollama Server url:
```
bash
```
bash
docker run
-d
-p
3000:8080
-e
OLLAMA_API_BASE_URL
=
https://example.com/api
-v
ollama-webui:/app/backend
--name
ollama-webui
--restart
always ghcr.io/ollama-webui/ollama-webui:main
docker run
-d
-p
3000:8080
-e
OLLAMA_API_BASE_URL
=
https://example.com/api
-v
ollama-webui:/app/backend
/data
--name
ollama-webui
--restart
always ghcr.io/ollama-webui/ollama-webui:main
```
```
Alternatively, if you prefer to build the container yourself, use the following command:
Alternatively, if you prefer to build the container yourself, use the following command:
```
bash
```
bash
docker build
-t
ollama-webui
.
docker build
-t
ollama-webui
.
docker run
-d
-p
3000:8080
-e
OLLAMA_API_BASE_URL
=
https://example.com/api
-v
ollama-webui:/app/backend
--name
ollama-webui
--restart
always ollama-webui
docker run
-d
-p
3000:8080
-e
OLLAMA_API_BASE_URL
=
https://example.com/api
-v
ollama-webui:/app/backend
/data
--name
ollama-webui
--restart
always ollama-webui
```
```
## How to Install Without Docker
## How to Install Without Docker
...
...
backend/apps/web/internal/db.py
View file @
7bdef561
from
peewee
import
*
from
peewee
import
*
DB
=
SqliteDatabase
(
"./ollama.db"
)
DB
=
SqliteDatabase
(
"./
data/
ollama.db"
)
DB
.
connect
()
DB
.
connect
()
backend/data/readme.txt
0 → 100644
View file @
7bdef561
dir for backend files (db, documents, etc.)
\ No newline at end of file
docker-compose.yml
View file @
7bdef561
...
@@ -19,7 +19,7 @@ services:
...
@@ -19,7 +19,7 @@ services:
image
:
ollama-webui:latest
image
:
ollama-webui:latest
container_name
:
ollama-webui
container_name
:
ollama-webui
volumes
:
volumes
:
-
ollama-webui:/app/backend
-
ollama-webui:/app/backend
/data
depends_on
:
depends_on
:
-
ollama
-
ollama
ports
:
ports
:
...
...
run.sh
View file @
7bdef561
docker stop ollama-webui
||
true
docker stop ollama-webui
||
true
docker
rm
ollama-webui
||
true
docker
rm
ollama-webui
||
true
docker build
-t
ollama-webui
.
docker build
-t
ollama-webui
.
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
--name
ollama-webui
--restart
always ollama-webui
docker run
-d
-p
3000:8080
--add-host
=
host.docker.internal:host-gateway
-v
ollama-webui:/app/backend
/data
--name
ollama-webui
--restart
always ollama-webui
docker image prune
-f
docker image prune
-f
\ No newline at end of file
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