-
-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Labels
Description
Is your feature request related to a problem? Please describe.
I have a big Docker Swarm machine that I host all of my projects as Docker containers. I want to have a central backup solution for all of the Swarm Stacks/Services that can be configured inside the projects' own docker-compose files.
Describe the solution you'd like
I use Traefik for routing incoming traffic to the containers. In Traefik, you don't give a central configuration, instead all of the service configurations are set by Docker labels inside project docker-compose files. This simplify the things a lot.
So I would like to be able to enable backup for a docker service like below:
myservice:
image: ....
volumes:
- myvolume:/data
deploy:
labels:
- "backup.enabled=true"
- "backup.source=myvolume"
# and other configurations as well, like a custom schedule, retention etc.Describe alternatives you've considered
- Running separate backup instances per stack doesn't seem efficient, since I'll duplicate a lot of configuration.
- I considered backing up the parent folder of the path that Docker keeps all of the volumes. But that doesn't sound a good idea, maybe is? 🤷🏻
- Configuring everything in a central place was another consideration but every project has its own Git repository, docker-compose file and CI/CD pipelines and keeping backup logic in another place is always a risk to have hassle.
MyWay, deadnews, w33ble, Chuckame, thomas-mc-work and 6 morepitkes22, CaptainStealthy and corinm