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 exec to create database backups #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jannikw
Copy link
Contributor

@jannikw jannikw commented May 28, 2020

This is an alternative implementation for doing database backups using the docker exec functionalities. Database pings to check for availability and database dumps are done by executing the respective programs inside the database containers.

For the database dumps, the low level docker api has to be used, because it otherwise not possible to retrieve an exit code and use streaming of the commands output to stdout and stderr.

I tested this with the provided docker-compose.yml and with the database containers running in different projects and therefore belonging to different networks.

Fixes #28

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.

Database connection fail when in different network
1 participant