-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Backup strategy with > 20 containers? #123
Comments
If you want to back up many volumes on the same Docker host you can basically go down two routes: One
|
You can also check out the test case for an example of how using |
@m90 thanks for the fast reply. Two approaches are understood, but what I still don't get is how the mapping between the configuration files in conf.d and the volumes are. In other words how the backup process knows which config file is valid for which volume.
assuming we have in |
In that case you can set volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- node-red_data:/backup/node-red:ro
- mosquitto_data:/backup/mosquitto:ro
- influx_data:/backup/influx:ro you then set set |
So like this...
with
and this for each volume. |
As long as |
Ok, cool. I will test the whole setup tomorrow when my backup hdd arrives. Will close the ticket if everything works as expected. @m90 thanks for the nice support 👍 |
Hi ! I have several docker-compose.yml files with differents stacks from my swarm cluster. Do you know what I mean ? Thanks ! |
I think you could use explicitly named volumes which makes them available across stacks. That being said, what keeps you from using one |
You're right. I was looking for another point of view to this architecture! I wanted to avoid repetition across the cluster, this is why. |
Solution works like a charm. Thanks for the support! |
Hey, sorry for the maybe dump question, but it's not clear for me and I don't see that is covered in the documentation. What's is the desired config for a "bigger" docker compose with 20 containers?
A sidecar per container or one big backup for all? I believe it is the second approach. If so, how then I can influence the ordering / timing of the backups? Is the backup in that order I provide the volume mounts?
Thanks for the help
Alex
The text was updated successfully, but these errors were encountered: