When running the webui directly on the host with --network=host, the port 8080 is troublesome because it's a very common port, for example phpmyadmin uses it.
It would be nice to change the default port to 11435 or being able to change it with an environment variable.
For now I can't run the webui since the default docker run command doesn't work (Server connection error) and making it run on the host conflicts with phpmyadmin.
Originally created by @Alexandre-Fernandez on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/453
When running the webui directly on the host with `--network=host`, the port 8080 is troublesome because it's a very common port, for example phpmyadmin uses it.
It would be nice to change the default port to 11435 or being able to change it with an environment variable.
For now I can't run the webui since the default docker run command doesn't work (Server connection error) and making it run on the host conflicts with phpmyadmin.
<!-- gh-comment-id:1887867770 -->
@anuraagdjain commented on GitHub (Jan 11, 2024):
I have this PR https://github.com/ollama-webui/ollama-webui/pull/454. Using `SERVER_PORT` you can modify the default port from 8080. Can you test ?
@Alexandre-Fernandez commented on GitHub (Jan 11, 2024):
I have this PR #454. Using SERVER_PORT you can modify the default port from 8080. Can you test ?
I tried to build the image but the build fails (Ubuntu 22.04).
> [base 11/11] COPY ./backend .:
------
Dockerfile:49
--------------------
47 | # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
48 |
49 | >>> COPY ./backend .
50 |
51 | CMD [ "sh", "start.sh"]
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref d8277cfd-3c1f-4ebc-9dad-43ef42114884::rz2789ejxt8rbj2osmnolcken: "/backend": not found
<!-- gh-comment-id:1887910120 -->
@Alexandre-Fernandez commented on GitHub (Jan 11, 2024):
> I have this PR #454. Using `SERVER_PORT` you can modify the default port from 8080. Can you test ?
I tried to build the [image](https://github.com/anuraagdjain/ollama-webui/blob/feat/custom-server-port/Dockerfile) but the build fails (Ubuntu 22.04).
```
> [base 11/11] COPY ./backend .:
------
Dockerfile:49
--------------------
47 | # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
48 |
49 | >>> COPY ./backend .
50 |
51 | CMD [ "sh", "start.sh"]
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref d8277cfd-3c1f-4ebc-9dad-43ef42114884::rz2789ejxt8rbj2osmnolcken: "/backend": not found
```
I have this PR #454. Using SERVER_PORT you can modify the default port from 8080. Can you test ?
I tried to build the image but the build fails (Ubuntu 22.04).
> [base 11/11] COPY ./backend .:
------
Dockerfile:49
--------------------
47 | # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
48 |
49 | >>> COPY ./backend .
50 |
51 | CMD [ "sh", "start.sh"]
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref d8277cfd-3c1f-4ebc-9dad-43ef42114884::rz2789ejxt8rbj2osmnolcken: "/backend": not found
Didn't get any issue here. The build was successful 🤔 . Can you prune older images and retry?
<!-- gh-comment-id:1887919834 -->
@anuraagdjain commented on GitHub (Jan 11, 2024):
> > I have this PR #454. Using `SERVER_PORT` you can modify the default port from 8080. Can you test ?
>
> I tried to build the [image](https://github.com/anuraagdjain/ollama-webui/blob/feat/custom-server-port/Dockerfile) but the build fails (Ubuntu 22.04).
>
> ```
> > [base 11/11] COPY ./backend .:
> ------
> Dockerfile:49
> --------------------
> 47 | # RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
> 48 |
> 49 | >>> COPY ./backend .
> 50 |
> 51 | CMD [ "sh", "start.sh"]
> --------------------
> ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref d8277cfd-3c1f-4ebc-9dad-43ef42114884::rz2789ejxt8rbj2osmnolcken: "/backend": not found
> ```
Didn't get any issue here. The build was successful 🤔 . Can you prune older images and retry?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Alexandre-Fernandez on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/453
When running the webui directly on the host with
--network=host, the port 8080 is troublesome because it's a very common port, for example phpmyadmin uses it.It would be nice to change the default port to 11435 or being able to change it with an environment variable.
For now I can't run the webui since the default docker run command doesn't work (Server connection error) and making it run on the host conflicts with phpmyadmin.
@anuraagdjain commented on GitHub (Jan 11, 2024):
I'm assuming you're using docker with
--network=host. I'm curious, why-p <new-port>:8080doesn't work?@anuraagdjain commented on GitHub (Jan 11, 2024):
I have this PR https://github.com/ollama-webui/ollama-webui/pull/454. Using
SERVER_PORTyou can modify the default port from 8080. Can you test ?@Alexandre-Fernandez commented on GitHub (Jan 11, 2024):
I tried to build the image but the build fails (Ubuntu 22.04).
@anuraagdjain commented on GitHub (Jan 11, 2024):
Didn't get any issue here. The build was successful 🤔 . Can you prune older images and retry?
@Alexandre-Fernandez commented on GitHub (Jan 11, 2024):
It's working
