Skip to content
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

postgresql data base is not persisted #228

Closed
Keyvan-rh opened this issue Jul 9, 2021 · 0 comments · Fixed by openshift/library#281
Closed

postgresql data base is not persisted #228

Keyvan-rh opened this issue Jul 9, 2021 · 0 comments · Fixed by openshift/library#281
Assignees

Comments

@Keyvan-rh
Copy link

There are 2 issues with this item in openshift catalog:
1. the postgresql template is mounting the persisted storage to an incorrect path therefore you lose data if you stop and start the postgresql container. ( current mount is "/var/lib/postgresql/data" but the correct location is "/var/lib/pgsql/data") . please change this value in .openshift/postgresql-template-persistent.json

 2.  When the nodejs app starts always dose the initialization therefore you always get back to the starting point. the app should init only if the database/collection and table do not exist. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants