Using Docker labels to have per-service configuration
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, docker-compose, go
- Área
- devops, infrastructure
Línea de trabajo
The issue proposes Docker labels in a service's docker-compose configuration to control backup enablement, source, schedule, and retention. Start by reading the project's backup configuration and Docker service discovery entry points to see how volumes are selected today. Done means defining how labels are read and applied across Swarm services, including the listed per-service settings; the issue does not identify specific files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 4.1k
- Forks
- 157
- Merge medio
- 4 h 35 min
- PR fusionados (30 d)
- 15
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de offen/docker-volume-backup
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
offen/docker-volume-backup#910 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Posiblemente ocupada @ciltocruz la tomó hace 2 días. Abiertoenhancement pr welcome
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
offen/docker-volume-backup#908 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Feat: age post quantum supportAbiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
offen/docker-volume-backup#879 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Migrate away from `minio-go`Abiertomaintenance pr welcome
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
offen/docker-volume-backup#869 ·
Los mantenedores suelen responder en 1 día
-
documentation pr welcome
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
offen/docker-volume-backup#796 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de offen/docker-volume-backup
Issues similares
-
area/ui-schema good first issue type/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
router-for-me/CLIProxyAPI#8573 ·
Los mantenedores suelen responder en 9 días
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyAbiertobug package:cmd priority:3-low
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
docToolchain/Bausteinsicht#761 ·
Los mantenedores suelen responder en 1 día
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Abiertoarea/knowledge kind/bug priority/p1 status/accepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openagentix/openagentix#253 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
quii/learn-go-with-tests#934 · 1 comentario ·