docker compose up pg is fail #13243

Closed
opened 2026-02-21 19:11:14 -05:00 by yindo · 2 comments
Owner

Originally created by @wawameizhangya on GitHub (Apr 23, 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 report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Provide a description of requested docs changes

The PG version 15 does not support the pguser environment parameter, which causes exceptions when running Docker Compose. Therefore, downgrade PG to version 14.

Originally created by @wawameizhangya on GitHub (Apr 23, 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 report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [ ] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Provide a description of requested docs changes The PG version 15 does not support the pguser environment parameter, which causes exceptions when running Docker Compose. Therefore, downgrade PG to version 14.
yindo closed this issue 2026-02-21 19:11:14 -05:00
Author
Owner

@wawameizhangya commented on GitHub (Apr 23, 2025):

https://github.com/langgenius/dify/blob/c6fb879ceaccb83b88907c4f67306c69d5a3806c/docker/docker-compose.yaml#L561

change: image: postgres:14

@wawameizhangya commented on GitHub (Apr 23, 2025): https://github.com/langgenius/dify/blob/c6fb879ceaccb83b88907c4f67306c69d5a3806c/docker/docker-compose.yaml#L561 change: image: postgres:14
Author
Owner

@dosubot[bot] commented on GitHub (Apr 23, 2025):

Hello @wawameizhangya! I'm Dosu, your friendly bot here to help you with bugs, answer questions, and guide you on your journey to becoming a contributor. I'm ready to assist you while we wait for a human maintainer. What can I help you with today?

The issue you're encountering with PostgreSQL version 15 and the PGUSER environment parameter might be related to configuration or compatibility issues. The current version specified in the docker-compose.yaml file for the Dify project is 15-alpine [1]. If you are experiencing issues with this version, you can try downgrading to PostgreSQL version 14 as suggested.

To do this, you can modify the docker-compose.yaml file by changing the PostgreSQL image version from 15-alpine to 14. This change should look like:

image: postgres:14

This adjustment might help resolve the exceptions you're facing when running Docker Compose.

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 (Apr 23, 2025): <!-- Greeting --> Hello @wawameizhangya! I'm [Dosu](https://dosu.dev), your friendly bot here to help you with bugs, answer questions, and guide you on your journey to becoming a contributor. I'm ready to assist you while we wait for a human maintainer. What can I help you with today? <!-- Answer --> The issue you're encountering with PostgreSQL version 15 and the `PGUSER` environment parameter might be related to configuration or compatibility issues. The current version specified in the `docker-compose.yaml` file for the Dify project is `15-alpine` <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/docker-compose-template.yaml)</sup>. If you are experiencing issues with this version, you can try downgrading to PostgreSQL version 14 as suggested. To do this, you can modify the `docker-compose.yaml` file by changing the PostgreSQL image version from `15-alpine` to `14`. This change should look like: ```yaml image: postgres:14 ``` This adjustment might help resolve the exceptions you're facing when running Docker Compose. <!-- 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/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/86a7b87e-ae0a-4b9c-bdce-eb9cb884422a?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#13243