Add PostgreSQL automatic database initialization support#63
Merged
H2CK merged 3 commits intoH2CK:webtrees-2.2from Dec 19, 2025
Merged
Add PostgreSQL automatic database initialization support#63H2CK merged 3 commits intoH2CK:webtrees-2.2from
H2CK merged 3 commits intoH2CK:webtrees-2.2from
Conversation
Owner
|
Thank you for this PR. Could you additionally add a folder Btw. the pipeline for this PR currently fails due to some problems in the Github Actions. I will take care for this later, but it should not affect your changes. |
Contributor
Author
|
Alright, i added the docker compose to a folder 👍 |
Owner
|
I will release a new version, which contains these changes in the next days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey man, love your work on this. I have been using your container in my cluster, but im trying to move away from mysql and only use postgres in there. For k8s i need the automatic db init feature. So here is the PR for it :D.
Summary
Basically: the change is backwards compatible: If you dont do anything different you use mysql, if you specify postgres as DB_TYPE you get the db init for postgres. Let me know if you want me to change anything on this.
btw, this is the docker-compose I used to test this. Not sure if you want this in your repo so im leaving this here: