Using Docker labels to have per-service configuration
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- docker, docker-compose, go
- Lĩnh vực
- devops, infrastructure
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Go
- Star
- 4.1k
- Fork
- 157
- Merge trung bình
- 4 giờ 35 phút
- Pull request đã merge (30 ngày)
- 15
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của offen/docker-volume-backup
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
offen/docker-volume-backup#910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Có thể đã có người làm @ciltocruz đã nhận 2 ngày trước. Đang mởenhancement pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
offen/docker-volume-backup#908 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feat: age post quantum supportĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
offen/docker-volume-backup#879 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrate away from `minio-go`Đang mởmaintenance pr welcome
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
offen/docker-volume-backup#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
offen/docker-volume-backup#796 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của offen/docker-volume-backup
Issue tương tự
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
router-for-me/CLIProxyAPI#8573 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyĐang mởbug package:cmd priority:3-low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
docToolchain/Bausteinsicht#761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Đang mởarea/knowledge kind/bug priority/p1 status/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openagentix/openagentix#253 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
quii/learn-go-with-tests#934 · 1 bình luận ·