Using Docker labels to have per-service configuration
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, docker-compose, go
- Ambito
- devops, infrastructure
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 4.1k
- Fork
- 157
- Merge medio
- 4h 35m
- PR unite (30g)
- 15
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di offen/docker-volume-backup
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
offen/docker-volume-backup#910 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Forse già presa @ciltocruz l’ha presa 2 giorni fa. Apertaenhancement pr welcome
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
offen/docker-volume-backup#908 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
offen/docker-volume-backup#879 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Migrate away from `minio-go`Apertamaintenance pr welcome
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
offen/docker-volume-backup#869 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation pr welcome
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
offen/docker-volume-backup#796 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di offen/docker-volume-backup
Issue simili
-
area/ui-schema good first issue type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
router-for-me/CLIProxyAPI#8573 ·
I maintainer di solito rispondono entro 9 giorni
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyApertabug package:cmd priority:3-low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
docToolchain/Bausteinsicht#761 ·
I maintainer di solito rispondono entro 1 giorno
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Apertaarea/knowledge kind/bug priority/p1 status/accepted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openagentix/openagentix#253 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
quii/learn-go-with-tests#934 · 1 commento ·