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 docker compose cp to copy database backups into the database container. #242

Open
megri opened this issue Oct 25, 2021 · 0 comments
Open

Comments

@megri
Copy link

megri commented Oct 25, 2021

I recently noticed when doing a divio project pull db <live|test> that having the project directory mounted at /app in the database container is required for the script to succeed (I had removed this line from my docker-compose.yml-file as it looked like it was redundant.)

Instead of expecting this directory to be present, the downloaded database backup could be copied directly to the running container with docker compose cp. This would likely be less brittle than the volume mount.

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

No branches or pull requests

1 participant