EXPOSE_DB_PORT is not configured in the env file. #8077

Closed
opened 2026-02-21 18:23:48 -05:00 by yindo · 1 comment
Owner

Originally created by @AAEE86 on GitHub (Feb 8, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • 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.

Dify version

1.0.0-beta.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Port 5432 is reused, and the parameter EXPOSE_DB_PORT is not configured in the env file.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @AAEE86 on GitHub (Feb 8, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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. ### Dify version 1.0.0-beta.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Port 5432 is reused, and the parameter EXPOSE_DB_PORT is not configured in the env file. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bugstale labels 2026-02-21 18:23:48 -05:00
yindo closed this issue 2026-02-21 18:23:48 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 8, 2025):

To configure the database port for a self-hosted Dify version 1.0.0-beta.1 using Docker, you should use the EXPOSE_POSTGRES_PORT parameter in the environment file. You can set it like this:

EXPOSE_POSTGRES_PORT=5432

This will specify the host port that will be exposed for the PostgreSQL database service. You can change 5432 to any other port number you wish to use [1].

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Feb 8, 2025): <!-- Answer --> To configure the database port for a self-hosted Dify version 1.0.0-beta.1 using Docker, you should use the `EXPOSE_POSTGRES_PORT` parameter in the environment file. You can set it like this: ```plaintext EXPOSE_POSTGRES_PORT=5432 ``` This will specify the host port that will be exposed for the PostgreSQL database service. You can change `5432` to any other port number you wish to use <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/middleware.env.example)</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/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/1168d390-7c6e-4e93-b688-ea4e99e7bf34?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8077