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

Use a named Docker volume to better persist data #3592

Merged
merged 2 commits into from
Jul 21, 2017

Conversation

nilbus
Copy link

@nilbus nilbus commented Jul 20, 2017

Goal: Keep the database data around beyond the life of the DB container, and automatically attach it to new DB containers.

Without this, docker-compose down or otherwise removing the postgres container leaves orphan volumes that will not be reattached automatically.

Based on #3590 to avoid conflicts.

This enables the use of defaults with variable interpolation.

Followed procedure documented at
https://docs.docker.com/compose/compose-file/compose-versioning/#version-1-to-2x
Otherwise, `docker-compose down' or otherwise removing the postgres
container leaves orphan volumes that will not be reattached
automatically.
@kytrinyx
Copy link
Member

Sweet, thank you!

@kytrinyx kytrinyx merged commit 67304db into exercism:master Jul 21, 2017
@nilbus nilbus deleted the docker-compose-volume branch July 25, 2017 01:07
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.

2 participants