Add option to change default docker port number #412

Closed
opened 2025-11-11 14:20:38 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @mynumu on GitHub (Mar 4, 2024).

Hi

Can you add an option to change the default port number from 3000 and add an example dockeryaml and env configuration file for openwebui with an understanding of what can be changed thanks

Originally created by @mynumu on GitHub (Mar 4, 2024). Hi Can you add an option to change the default port number from 3000 and add an example dockeryaml and env configuration file for openwebui with an understanding of what can be changed thanks
Author
Owner

@justinh-rahb commented on GitHub (Mar 4, 2024):

To modify the exposed port in Docker, you can utilize Docker's port mapping functionality. For instance, if you want to change the port to 3333 for example, you can use the following in your docker run command:

-p 3333:8080

Alternatively, if you are using docker compose, you can modify the port definition line in the docker-compose.yaml file to:

ports:
  - "3333:8080"

Note

It is expected and indeed necessary in most cases for users to modify docker-compose.yaml to suit their deployment.

Having a solid understanding of Docker is essential if you want to deviate from the instructions provided in the documentation or need to adapt them to your specific use case.

@justinh-rahb commented on GitHub (Mar 4, 2024): To modify the exposed port in Docker, you can utilize Docker's port mapping functionality. For instance, if you want to change the port to `3333` for example, you can use the following in your `docker run` command: ```bash -p 3333:8080 ``` Alternatively, if you are using `docker compose`, you can modify the port definition line in the `docker-compose.yaml` file to: ```yaml ports: - "3333:8080" ``` > [!NOTE] > It is expected and indeed necessary in most cases for users to modify `docker-compose.yaml` to suit their deployment. Having a solid understanding of Docker is essential if you want to deviate from the instructions provided in the documentation or need to adapt them to your specific use case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#412