-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Update docker-compose.yml example to Postgres 16 and update initialization script #8486
Conversation
Required since Postgres version 15.
Hey @johnyb0y, Thanks for the PR, Would you be able to update the other example that uses Postgres as well? |
@Joffcom Sure, no problem. Please let me know if I can be of further help here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add some more info about how to migrate a postgres container from 11 to 16, as the container by default won't run a pg_upgrade
.
This PR is simply meant as an update to the current docker installation method. I cannot provide upgrade instructions for existing docker installations. Upgrading an existing database can be non-trivial and things can go wrong (as I'm sure you all know). |
That is valid, I also think changing database versions is outside of our scope and the user should refere to the documentation provided by their database of choice. |
Thinking about it some more, maybe we can meet somewhere in the middle. |
@johnyb0y I was thinking the same, and was trying to figure out where to put such a notice to that anyone who uses the compose file directly from this repo can be informed about this change. |
How about this then: I could add a general comment inside of the compose file that the version of postgres needs to be pinned to a major version like "16" and that upgrading an existing Postgres database requires more steps than changing the version number inside the compose file. With a referral to official Postgres upgrade instructions. If that sounds good to you I could amend this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll take care of updating any docs in a separate PR. let's get this merged.
* master: (63 commits) fix(editor): Fix various typecheck issues (no-changelog) (#8739) feat: SQL agent improvements (#8709) fix(Postgres Trigger Node): `closeFunction` errors should not prevent a workflow from being deactivated (#8738) feat: Add support for Ollama embeddings API (#8732) fix(editor): Remove NDVSubConnections component console.log (no-changelog) (#8737) fix(editor): Hide previous execution data for sub-nodes in debug mode if it has execution error (#8710) feat: Add env variables to support exposing `/workflows/demo` route and `/nodes.json` route (#8506) refactor(core): Update auth related typings (no-changelog) (#8686) docs: Update docker-compose.yml example to Postgres 16 and update initialization script (#8486) fix(editor): Update Filter component state when value is updated (#8684) feat(editor): AI Floating Nodes (#8703) fix(core): Fix pairedItem issue with partial manual executions (#8575) fix: Fix execution error when using AI chain nodes with non-chat model (#8724) feat(AI Agent Node): Allow use of Azure Chat model for OpenAI Functions agent (#8725) ci: Upgrade `ip` to address CVE-2023-42282 (no-changelog) (#8704) fix(core): Ensure `maxRedirects` is used for any http request defining it (#8706) fix(Trello Node): Remove GET request body (#8715) fix(editor): Do not break NDV for version-less nodes (#8714) feat(editor): Retrieve previous chat message on arrow-up (#8696) fix(Default Data Loader Node): Fix binary data loader in s3 mode (#8626) ...
Got released with |
Summary
This PR updates the example docker-compose.yml to use Postgres version 16.
Before this change it was Postgres 11, which is EOL since November 9, 2023.
Since the default permissions on the public schema have changed since Postgres 15, we also need to update the included Initialization script. Before, the insecure default was to allow everyone (PUBLIC) to create objects in schema public. Now only the database owner can do that, unless you grant extra privileges. Therefore we need do that for our POSTGRES_NON_ROOT_USER.
I have done a quick test deployment and created some example workflows and found no problems.
Edit: I also looked at the docs and only found a mentioned link to the docker-compose.yml example file in the github repo, which doesn't need to be updated.
Related tickets and issues
Review / Merge checklist
(no-changelog)
otherwise. (conventions)