how to up date web port #8902

Closed
opened 2026-02-21 18:28:30 -05:00 by yindo · 2 comments
Owner

Originally created by @xiaogu-space on GitHub (Mar 3, 2025).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I want to update the port 3000 to 4000

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @xiaogu-space on GitHub (Mar 3, 2025). ### Self Checks - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I want to update the port 3000 to 4000 ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 🌚 invalid label 2026-02-21 18:28:30 -05:00
yindo closed this issue 2026-02-21 18:28:30 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

To update the web port from 3000 to 4000, you need to modify the ENV PORT and EXPOSE directives in the Dockerfile. Change them as follows:

ENV PORT=4000
EXPOSE 4000

This will set the environment variable PORT to 4000 and expose port 4000 in the Docker container [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 3, 2025): <!-- Answer --> To update the web port from 3000 to 4000, you need to modify the `ENV PORT` and `EXPOSE` directives in the `Dockerfile`. Change them as follows: ```dockerfile ENV PORT=4000 EXPOSE 4000 ``` This will set the environment variable `PORT` to 4000 and expose port 4000 in the Docker container <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/Dockerfile)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/2bd800ca-d74c-4e50-9fac-65e293415c2d?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 3, 2025):

For question, please use discussion instead.
Please search the existing issues/ internet or read the docs.

@crazywoola commented on GitHub (Mar 3, 2025): For question, please use discussion instead. Please search the existing issues/ internet or read the docs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8902