-
-
Notifications
You must be signed in to change notification settings - Fork 112
Update docker compose to support postgreql 18+ #488
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
base: main
Are you sure you want to change the base?
Conversation
|
Could you verify it works with Postgres 16+ as well? |
|
Yes this does work with v16. I tested with the Although I think this maybe a "breaking change". When upgrading from 16->18 the data structure changed so users upgrading will need to do a migration with the steps outlined in the docker documentation provided prior to the image upgrade. https://github.com/oss-apps/split-pro/tree/main/docker#migrating-instance On another note it maybe worth pinning docker compose to a major version. Maybe adding a tag for the latest major version? such as |
|
Yes, the pin is a good idea. Regarding upgrades AFAIK it is on user side, considering they don't pull the updated compose file or force-pull an update image. Unless, they do it intentionally of course. Considering that v18 was just released, I would prefer to pin the version to v17 instead. We don't use any features from v18 and 17 had much more time to stabilize with minor patches. |
|
The latest image from docker is v18 so some changes will need to be made there. If someone were to run docker compose today it will be broken since latest is v18 Would you like me to update the docker compose file with the 17 tag? Obviously that tag will need to be added to the docker image. |
|
For new users I agree. I meant that existing users should be safe. I would update the tag to |
|
Sure I can do that but I would suggest the tag be created since that way the docker compose file will only need to be updated per major version. For example, If 17.10. is updated to lets say 17.30 you would not have to update the compose file since it would be part of the major version 17 tag. |
|
Good idea, I would be happy to accept a PR with appropriate scripts for that |
krokosik
left a comment
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.
Additionally, please fix the Docker tag to 17.10
| env_file: .env | ||
| volumes: | ||
| - database:/var/lib/postgresql/data | ||
| - database:/var/lib/postgresql |
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.
This change should be also propagated to the dev version.
Description
With the updated postgresql (v18) docker image. The container failed to start. Citing this issue. docker-library/postgres#37
The docker compose file has been updated to reflect the new path.
Demo
N/A
Checklist
CONTRIBUTING.mdin its entirety