1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-05-07 02:11:34 +02:00

docker: added ollama and webui setup and shared page

This commit is contained in:
2025-09-22 01:05:47 +02:00
parent c0e3170619
commit 7476364f83
3 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# ollama - ollama
This is a [Docker](/wiki/docker.md) container for an ollama server.
The official container and documentation was made by
[ollama](https://hub.docker.com/r/ollama/ollama).
## Set-up
Create the file `rebuild.sh`.
Change the settings according to your needs and run `./rebuild.sh` afterwards.
## Ports
Set the following ports in the `ports:` section.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | --------- | ------------------- |
| `11434` | `11434` | TCP | Communications port |
## Volumes
Set the following volumes with the -v tag.
| Outside mount/volume name | Container mount | Description |
| ------------------------- | --------------- | ------------- |
| `ollama` | `/root/.ollama` | Ollama data |
## rebuild.sh
```sh
#!/bin/sh
docker stop ollama
docker rm ollama
docker pull ollama/ollama
docker run --name ollama \
--restart unless-stopped \
-p 11434:11434 \
-v ollama:/root/.ollama \
-d ollama/ollama
```

View File

@@ -0,0 +1,41 @@
# open-webui - open-webui
This is a [Docker](/wiki/docker.md) container for a Open WebUI server.
The official container and documentation was made by
[open-webui](https://github.com/open-webui/open-webui).
## Set-up
Create the file `rebuild.sh`.
Change the settings according to your needs and run `./rebuild.sh` afterwards.
## Ports
Set the following ports in the `ports:` section.
| Container Port | Recommended outside port | Protocol | Description |
| -------------- | ------------------------ | --------- | ------------- |
| `11434` | `8080` | TCP | WebUI |
## Volumes
Set the following volumes with the -v tag.
| Outside mount/volume name | Container mount | Description |
| ------------------------- | ------------------- | --------------- |
| `open-webui` | `/app/backend/data` | Open WebUI data |
## rebuild.sh
```sh
#!/bin/sh
docker stop openwebui
docker rm openwebui
docker pull ghcr.io/open-webui/open-webui:main
docker run --name openwebui \
--restart unless-stopped \
-p 11434:8080 \
-v open-webui:/app/backend/data \
-d ghcr.io/open-webui/open-webui:main
```