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

The volume path for db-data was wrong. needed data sub-folder. Without that wasn't persisting the db on stop of container. #175

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

philrwebb
Copy link
Contributor

In using this docker-compose found that because the db-data volume was different to that in the postgres:10-alpine dockerfile the system did not persist data between down and up of docker-compose. Added /data to volume path and now all works.

…t that wasn't persisting the db on stop of container.
@martialblog
Copy link
Owner

Hi, thanks for the PR. Looks good!

@martialblog martialblog self-assigned this Oct 27, 2023
@martialblog martialblog merged commit 96cc3ca into martialblog:master Oct 27, 2023
12 checks passed
@philrwebb philrwebb deleted the fix_db-data_volume_path branch October 28, 2023 03:30
@jacksgt
Copy link
Collaborator

jacksgt commented Nov 3, 2023

Hmmm, I feel this one. Happened to me once with a Gitlab Postgres container ... lost a couple of days worth of data :-(

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 this pull request may close these issues.

3 participants